style: remove most right whitespace chomps except those directly following a template definition

This commit is contained in:
Chi-En Wu
2020-04-27 10:27:26 +08:00
parent dd6822704c
commit a0bfeb4cf6
17 changed files with 195 additions and 195 deletions

View File

@ -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 }}