Skip to content

Commit

Permalink
[velero] feat: Adds --keep-latest-jobs-count for repository maintenan…
Browse files Browse the repository at this point in the history
…ce 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]>
  • Loading branch information
navilg authored Jul 25, 2024
1 parent 42fed36 commit 721abcb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/velero/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: 1.14.0
kubeVersion: ">=1.16.0-0"
description: A Helm chart for velero
name: velero
version: 7.1.2
version: 7.1.3
home: https://github.com/vmware-tanzu/velero
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
sources:
Expand Down
3 changes: 3 additions & 0 deletions charts/velero/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ spec:
- --maintenance-job-mem-limit={{ . }}
{{- end }}
{{- end }}
{{- with .latestJobsCount }}
- --keep-latest-maintenance-jobs={{ . }}
{{- end }}
{{- end }}
{{- with .extraArgs }}
### User-supplied overwrite flags
Expand Down
2 changes: 2 additions & 0 deletions charts/velero/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,8 @@ configuration:
limits:
# cpu: 1000m
# memory: 1024Mi
# Number of latest maintenance jobs to keep for each repository
latestJobsCount: 3
# `velero server` default: velero
namespace:
# additional command-line arguments that will be passed to the `velero server`
Expand Down

0 comments on commit 721abcb

Please sign in to comment.