From 6766017d388cbc21636f6b1deb9ab931a4617259 Mon Sep 17 00:00:00 2001 From: Thulio Ferraz Assis Date: Thu, 3 Sep 2020 13:44:57 -0500 Subject: [PATCH 1/2] fix: with .Values.podAnnotations indent template Signed-off-by: Thulio Ferraz Assis --- pkg/chartutil/create.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/chartutil/create.go b/pkg/chartutil/create.go index 8d8f48176..2e3b12782 100644 --- a/pkg/chartutil/create.go +++ b/pkg/chartutil/create.go @@ -254,10 +254,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: From b4bb73d8ceeb4abf70c1a2e57d4779b5bfd6a82e Mon Sep 17 00:00:00 2001 From: Thulio Ferraz Assis Date: Wed, 16 Sep 2020 20:42:05 -0500 Subject: [PATCH 2/2] fix: if not .Values.autoscaling.enabled indent Signed-off-by: Thulio Ferraz Assis --- pkg/chartutil/create.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/chartutil/create.go b/pkg/chartutil/create.go index 2e3b12782..3144437ae 100644 --- a/pkg/chartutil/create.go +++ b/pkg/chartutil/create.go @@ -246,9 +246,9 @@ metadata: labels: {{- include ".labels" . | nindent 4 }} spec: -{{- if not .Values.autoscaling.enabled }} + {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} -{{- end }} + {{- end }} selector: matchLabels: {{- include ".selectorLabels" . | nindent 6 }}