From 1d9767fea29189ea2ebb2b08fea743a8190d0f0b Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Mon, 12 Oct 2020 15:42:14 +0200 Subject: [PATCH] helm create: make generated YAML indentation more consistent Signed-off-by: Erik Sundell --- pkg/chartutil/create.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/chartutil/create.go b/pkg/chartutil/create.go index 86681247e..4a3907000 100644 --- a/pkg/chartutil/create.go +++ b/pkg/chartutil/create.go @@ -266,10 +266,10 @@ spec: {{- include ".selectorLabels" . | nindent 6 }} template: metadata: - {{- with .Values.podAnnotations }} + {{- with .Values.podAnnotations }} annotations: {{- toYaml . | nindent 8 }} - {{- end }} + {{- end }} labels: {{- include ".selectorLabels" . | nindent 8 }} spec: @@ -360,18 +360,18 @@ spec: minReplicas: {{ .Values.autoscaling.minReplicas }} maxReplicas: {{ .Values.autoscaling.maxReplicas }} metrics: - {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} + {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - type: Resource resource: name: cpu targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} - {{- end }} - {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} + {{- end }} + {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - type: Resource resource: name: memory targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} - {{- end }} + {{- end }} {{- end }} `