style: remove most right whitespace chomps except those directly following a template definition
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
{{/* vim: set filetype=mustache: */}}
|
||||
|
||||
{{- define "common.service.tpl" -}}
|
||||
{{- $top := first . -}}
|
||||
{{- $service := index . 1 -}}
|
||||
{{- $top := first . }}
|
||||
{{- $service := index . 1 }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
@ -16,8 +16,8 @@ spec:
|
||||
name: http
|
||||
selector:
|
||||
{{- include "common.selectorLabels" $top | nindent 4 }}
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
|
||||
{{- define "common.service" -}}
|
||||
{{- include "common.utils.merge" (append . "common.service.tpl") -}}
|
||||
{{- end -}}
|
||||
{{- include "common.utils.merge" (append . "common.service.tpl") }}
|
||||
{{- end }}
|
||||
|
Reference in New Issue
Block a user