style: remove most right whitespace chomps except those directly following a template definition
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
{{/* vim: set filetype=mustache: */}}
|
||||
|
||||
{{- define "common.serviceMonitor.secret.tpl" -}}
|
||||
{{- $top := first . -}}
|
||||
{{- $serviceMonitor := index . 1 -}}
|
||||
{{- $basicAuth := $serviceMonitor.basicAuth | default (dict) -}}
|
||||
{{- $top := first . }}
|
||||
{{- $serviceMonitor := index . 1 }}
|
||||
{{- $basicAuth := $serviceMonitor.basicAuth | default (dict) }}
|
||||
metadata:
|
||||
name: {{ $basicAuth.secretName | default (include "common.fullname" $top) }}
|
||||
{{- with $serviceMonitor.namespace }}
|
||||
@ -14,12 +14,12 @@ data:
|
||||
{{ $basicAuth.usernameKey | default "username" }}: {{ $basicAuth.username | toString | b64enc | quote }}
|
||||
{{ $basicAuth.passwordKey | default "password" }}: {{ $basicAuth.password | toString | b64enc | quote }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
|
||||
{{- define "common.serviceMonitor.secret" -}}
|
||||
{{- $top := first . -}}
|
||||
{{- $serviceMonitor := index . 1 -}}
|
||||
{{- if $serviceMonitor.enabled -}}
|
||||
{{- include "common.secret" (append . "common.serviceMonitor.secret.tpl") -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- $top := first . }}
|
||||
{{- $serviceMonitor := index . 1 }}
|
||||
{{- if $serviceMonitor.enabled }}
|
||||
{{- include "common.secret" (append . "common.serviceMonitor.secret.tpl") }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
Reference in New Issue
Block a user