move revisionHistoryLimit to globals & supprot revisionHistoryLimit=0

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
Tim Ramlot 2024-01-04 09:45:18 +01:00
parent e1fe377dcb
commit 9bb4c3e075
No known key found for this signature in database
GPG Key ID: 47428728E0C2878D
4 changed files with 9 additions and 9 deletions

View File

@ -16,8 +16,8 @@ metadata:
{{- end }}
spec:
replicas: {{ .Values.cainjector.replicaCount }}
{{- if .Values.revisionHistoryLimit }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
{{- if ne (quote .Values.global.revisionHistoryLimit) (quote "") }}
revisionHistoryLimit: {{ .Values.global.revisionHistoryLimit }}
{{- end }}
selector:
matchLabels:

View File

@ -15,8 +15,8 @@ metadata:
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
{{- if .Values.revisionHistoryLimit }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
{{- if ne (quote .Values.global.revisionHistoryLimit) (quote "") }}
revisionHistoryLimit: {{ .Values.global.revisionHistoryLimit }}
{{- end }}
selector:
matchLabels:

View File

@ -15,8 +15,8 @@ metadata:
{{- end }}
spec:
replicas: {{ .Values.webhook.replicaCount }}
{{- if .Values.revisionHistoryLimit }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
{{- if ne (quote .Values.global.revisionHistoryLimit) (quote "") }}
revisionHistoryLimit: {{ .Values.global.revisionHistoryLimit }}
{{- end }}
selector:
matchLabels:

View File

@ -17,6 +17,9 @@ global:
commonLabels: {}
# team_name: dev
# The number of old ReplicaSets to retain to allow rollback (If not set, default Kubernetes value is set to 10)
# revisionHistoryLimit: 1
# Optional priority class to be used for the cert-manager pods
priorityClassName: ""
rbac:
@ -54,9 +57,6 @@ installCRDs: false
replicaCount: 1
# Number of old history to retain to allow rollback (If not set, default Kubernetes value is set to 10)
# revisionHistoryLimit: 1
strategy: {}
# type: RollingUpdate
# rollingUpdate: