update replicas conditional to latest version

- simpler logic
- thanks to review comment for catching this

Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
This commit is contained in:
Anton Gilgur 2023-04-23 10:48:27 -04:00
parent acd800b4b2
commit 33e7117e49

View file

@ -12,7 +12,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if (ne .Values.server.autoscaling.enabled true) }}
{{- if not .Values.server.autoscaling.enabled }}
replicas: {{ .Values.server.replicas }}
{{- end }}
selector: