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>
This commit is contained in:
Brad Solomon
2022-10-24 06:05:01 -04:00
committed by GitHub
parent db6685818b
commit 37d1a02e5a

View File

@@ -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 }}