fix: disable replicas when autoscaling enabled (#9473)

Signed-off-by: Jakub Oskera <iam@jakuboskera.dev>
This commit is contained in:
Jakub Oskera
2022-03-18 13:05:49 +01:00
committed by GitHub
parent 2c88028a14
commit f133cf41f4
2 changed files with 3 additions and 1 deletions

View File

@@ -25,4 +25,4 @@ name: nginx
sources:
- https://github.com/bitnami/bitnami-docker-nginx
- https://www.nginx.org
version: 9.9.4
version: 9.9.5

View File

@@ -10,7 +10,9 @@ metadata:
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
{{- if .Values.updateStrategy }}
strategy: {{- toYaml .Values.updateStrategy | nindent 4 }}
{{- end }}