Skip to content

Commit 721abcb

Browse files
authored
[velero] feat: Adds --keep-latest-jobs-count for repository maintenance job (#604)
* feat: Adds --keep-latest-jobs-count for repository maintenance job Signed-off-by: Navratan Lal Gupta <[email protected]> * adds comment to explain .configuration.repositoryMaintenanceJob.keepLatestJobsCount Signed-off-by: Navratan Lal Gupta <[email protected]> * replaces .configuration.repositoryMaintenanceJob.keepLatestJobsCount key with .configuration.repositoryMaintenanceJob.latestJobsCount Signed-off-by: Navratan Lal Gupta <[email protected]> * fix: invalid argument for --keep-latest-maintenance-jobs flag Signed-off-by: Navratan Lal Gupta <[email protected]> --------- Signed-off-by: Navratan Lal Gupta <[email protected]>
1 parent 42fed36 commit 721abcb

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

charts/velero/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ appVersion: 1.14.0
33
kubeVersion: ">=1.16.0-0"
44
description: A Helm chart for velero
55
name: velero
6-
version: 7.1.2
6+
version: 7.1.3
77
home: https://github.com/vmware-tanzu/velero
88
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
99
sources:

charts/velero/templates/deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ spec:
183183
- --maintenance-job-mem-limit={{ . }}
184184
{{- end }}
185185
{{- end }}
186+
{{- with .latestJobsCount }}
187+
- --keep-latest-maintenance-jobs={{ . }}
188+
{{- end }}
186189
{{- end }}
187190
{{- with .extraArgs }}
188191
### User-supplied overwrite flags

charts/velero/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,8 @@ configuration:
449449
limits:
450450
# cpu: 1000m
451451
# memory: 1024Mi
452+
# Number of latest maintenance jobs to keep for each repository
453+
latestJobsCount: 3
452454
# `velero server` default: velero
453455
namespace:
454456
# additional command-line arguments that will be passed to the `velero server`

0 commit comments

Comments
 (0)