diff --git a/template/CHART_NAME/templates/deployment.yaml b/template/CHART_NAME/templates/deployment.yaml index 36a6b4f7d..643625643 100644 --- a/template/CHART_NAME/templates/deployment.yaml +++ b/template/CHART_NAME/templates/deployment.yaml @@ -12,7 +12,7 @@ metadata: annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} {{- end }} spec: - {{- if not .Values.autoscaling.enabled }} + {{- if not .Values.%%MAIN_OBJECT_BLOCK%%.autoscaling.enabled }} replicas: {{ .Values.%%MAIN_OBJECT_BLOCK%%.replicaCount }} {{- end }} {{- if .Values.%%MAIN_OBJECT_BLOCK%%.updateStrategy }}