Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[velero] feat: Adds resources and limits for repository maintenance job #601

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.1
version: 7.1.2
home: https://github.com/vmware-tanzu/velero
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
sources:
Expand Down
8 changes: 8 additions & 0 deletions charts/velero/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,14 @@ spec:
{{- with .namespace }}
- --namespace={{ . }}
{{- end }}
{{- with .repositoryMaintenanceJob.requests }}
- --maintenance-job-cpu-request={{ .cpu }}
- --maintenance-job-mem-request={{ .memory }}
{{- end }}
{{- with .repositoryMaintenanceJob.limits }}
- --maintenance-job-cpu-limit={{ .cpu }}
- --maintenance-job-mem-limit={{ .memory }}
{{- end }}
{{- with .extraArgs }}
### User-supplied overwrite flags
{{- toYaml . | nindent 12 }}
Expand Down
9 changes: 9 additions & 0 deletions charts/velero/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,15 @@ configuration:
# Comma separated list of velero feature flags. default: empty
# features: EnableCSI
features:
# Resource requests/limits to specify for the repository-maintenance job. Optional.
# https://velero.io/docs/v1.14/repository-maintenance/#resource-limitation
repositoryMaintenanceJob:
requests:
# cpu: 500m
# memory: 512Mi
limits:
# cpu: 1000m
# memory: 1024Mi
# `velero server` default: velero
namespace:
# additional command-line arguments that will be passed to the `velero server`
Expand Down
Loading