Skip to content

Commit f4f5391

Browse files
committed
feat: Adds resources and limits for repository maintenance job
Signed-off-by: Sebastian-RG <[email protected]>
1 parent fb5a08a commit f4f5391

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-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.1
6+
version: 7.1.2
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

+8
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,14 @@ spec:
166166
{{- with .namespace }}
167167
- --namespace={{ . }}
168168
{{- end }}
169+
{{- with .repositoryMaintenanceJob.requests }}
170+
- --maintenance-job-cpu-request={{ .cpu }}
171+
- --maintenance-job-mem-request={{ .memory }}
172+
{{- end }}
173+
{{- with .repositoryMaintenanceJob.limits }}
174+
- --maintenance-job-cpu-limit={{ .cpu }}
175+
- --maintenance-job-mem-limit={{ .memory }}
176+
{{- end }}
169177
{{- with .extraArgs }}
170178
### User-supplied overwrite flags
171179
{{- toYaml . | nindent 12 }}

charts/velero/values.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,15 @@ configuration:
440440
# Comma separated list of velero feature flags. default: empty
441441
# features: EnableCSI
442442
features:
443+
# Resource requests/limits to specify for the repository-maintenance job. Optional.
444+
# https://velero.io/docs/v1.14/repository-maintenance/#resource-limitation
445+
repositoryMaintenanceJob:
446+
requests: {}
447+
# cpu: 500m
448+
# memory: 512Mi
449+
limits: {}
450+
# cpu: 1000m
451+
# memory: 1024Mi
443452
# `velero server` default: velero
444453
namespace:
445454
# additional command-line arguments that will be passed to the `velero server`

0 commit comments

Comments
 (0)