[bitnami/apache] Update templates to have conditionals for HPA (#29489)

This commit is contained in:
Ann Moon
2024-09-18 01:02:45 -07:00
committed by GitHub
parent 894aca0338
commit 6882c22cc7
5 changed files with 23 additions and 16 deletions

View File

@@ -16,7 +16,10 @@ spec:
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels ) "context" . ) }}
selector:
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
# Have replicas Only if autoscaling is disabled
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
{{- if .Values.updateStrategy }}
strategy: {{- toYaml .Values.updateStrategy | nindent 4 }}