From 37d1a02e5aeec2b443fcc7e357501fbe3e0ae61a Mon Sep 17 00:00:00 2001 From: Brad Solomon <81818815+brsolomon-deloitte@users.noreply.github.com> Date: Mon, 24 Oct 2022 06:05:01 -0400 Subject: [PATCH] Fix autoscaling reference in template chart deployment (#13062) In values.yaml, autoscaling is nested under %%MAIN_OBJECT_BLOCK%%. Signed-off-by: Brad Solomon <81818815+brsolomon-deloitte@users.noreply.github.com> Signed-off-by: Brad Solomon <81818815+brsolomon-deloitte@users.noreply.github.com> --- template/CHART_NAME/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}