diff --git a/pkg/chartutil/create.go b/pkg/chartutil/create.go index 86681247e..fa3e5a5a9 100644 --- a/pkg/chartutil/create.go +++ b/pkg/chartutil/create.go @@ -258,18 +258,18 @@ 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 }} template: metadata: - {{- with .Values.podAnnotations }} + {{- with .Values.podAnnotations }} annotations: {{- toYaml . | nindent 8 }} - {{- end }} + {{- end }} labels: {{- include ".selectorLabels" . | nindent 8 }} spec: