Skip to content

Commit 3fdad2a

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

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-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

+18
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,24 @@ spec:
166166
{{- with .namespace }}
167167
- --namespace={{ . }}
168168
{{- end }}
169+
{{- with .repositoryMaintenanceJob }}
170+
{{- with .requests }}
171+
{{- with .cpu }}
172+
- --maintenance-job-cpu-request={{ .cpu }}
173+
{{- end }}
174+
{{- with .memory }}
175+
- --maintenance-job-mem-request={{ .memory }}
176+
{{- end }}
177+
{{- end }}
178+
{{- with .limits }}
179+
{{- with .cpu }}
180+
- --maintenance-job-cpu-limit={{ . }}
181+
{{- end }}
182+
{{- with .memory }}
183+
- --maintenance-job-mem-limit={{ . }}
184+
{{- end }}
185+
{{- end }}
186+
{{- end }}
169187
{{- with .extraArgs }}
170188
### User-supplied overwrite flags
171189
{{- 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)