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.hpa.tpl" -}}
|
||||
{{- $top := first . -}}
|
||||
{{- $autoscaling := index . 1 -}}
|
||||
{{- $top := first . }}
|
||||
{{- $autoscaling := index . 1 }}
|
||||
apiVersion: autoscaling/v2beta2
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
@ -30,12 +30,12 @@ spec:
|
||||
target:
|
||||
type: Utilization
|
||||
averageUtilization: {{ . }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- define "common.hpa" -}}
|
||||
{{- $autoscaling := index . 1 -}}
|
||||
{{- if $autoscaling.enabled -}}
|
||||
{{- include "common.utils.merge" (append . "common.hpa.tpl") -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- $autoscaling := index . 1 }}
|
||||
{{- if $autoscaling.enabled }}
|
||||
{{- include "common.utils.merge" (append . "common.hpa.tpl") }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
Reference in New Issue
Block a user