diff --git a/charts/velero/Chart.yaml b/charts/velero/Chart.yaml index 0b13607a..7d721320 100644 --- a/charts/velero/Chart.yaml +++ b/charts/velero/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 1.11.1 kubeVersion: ">=1.16.0-0" description: A Helm chart for velero name: velero -version: 4.1.5 +version: 4.2.0 home: https://github.com/vmware-tanzu/velero icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png sources: diff --git a/charts/velero/templates/deployment.yaml b/charts/velero/templates/deployment.yaml index 859a304c..2f0cf8db 100644 --- a/charts/velero/templates/deployment.yaml +++ b/charts/velero/templates/deployment.yaml @@ -20,6 +20,9 @@ metadata: {{- end }} spec: replicas: 1 + {{- if .Values.revisionHistoryLimit }} + revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} + {{- end }} strategy: type: Recreate selector: diff --git a/charts/velero/values.yaml b/charts/velero/values.yaml index db3ad4bf..604ae4cf 100644 --- a/charts/velero/values.yaml +++ b/charts/velero/values.yaml @@ -35,6 +35,9 @@ podAnnotations: {} # ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ podLabels: {} +# Number of old history to retain to allow rollback (If not set, default Kubernetes value is set to 10) +# revisionHistoryLimit: 1 + # Resource requests/limits to specify for the Velero deployment. # https://velero.io/docs/v1.6/customize-installation/#customize-resource-requests-and-limits resources: