diff --git a/charts/generic/templates/deployment.yaml b/charts/generic/templates/deployment.yaml index 6a27b77e..ec708ad7 100644 --- a/charts/generic/templates/deployment.yaml +++ b/charts/generic/templates/deployment.yaml @@ -20,6 +20,9 @@ spec: strategy: {{- toYaml . | nindent 4 }} {{- end }} + {{- with .Values.revisionHistoryLimit }} + revisionHistoryLimit: {{ toYaml . }} + {{- end }} template: metadata: {{- if or .Values.podAnnotations .Values.configMap.enabled }} diff --git a/charts/generic/values.yaml b/charts/generic/values.yaml index 55c2fe75..49a6cb8b 100644 --- a/charts/generic/values.yaml +++ b/charts/generic/values.yaml @@ -10,6 +10,9 @@ restartPolicy: Always deploymentStrategy: {} +# -- The number of old ReplicaSets to retain +revisionHistoryLimit: + initContainers: [] imagePullSecrets: []