Skip to content

Commit e523df5

Browse files
committed
[velero] Allow passing custom arguments to velero server CLI
Signed-off-by: Jack Henschel <[email protected]>
1 parent 8343f85 commit e523df5

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

charts/velero/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ appVersion: 1.13.0
33
kubeVersion: ">=1.16.0-0"
44
description: A Helm chart for velero
55
name: velero
6-
version: 6.1.0
6+
version: 6.2.0
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

+7
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ spec:
123123
{{- with .disableControllers }}
124124
- --disable-controllers={{ . }}
125125
{{- end }}
126+
{{- with .disableInformerCache }}
127+
- --disable-informer-cache={{ . }}
128+
{{- end }}
126129
{{- with .garbageCollectionFrequency }}
127130
- --garbage-collection-frequency={{ . }}
128131
{{- end }}
@@ -163,6 +166,10 @@ spec:
163166
{{- with .namespace }}
164167
- --namespace={{ . }}
165168
{{- end }}
169+
{{- with .extraArgs }}
170+
### User-supplied overwrite flags
171+
{{- toYaml . | nindent 12 }}
172+
{{- end }}
166173
{{- end }}
167174
{{- with .Values.resources }}
168175
resources:

charts/velero/values.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ configuration:
413413
defaultVolumeSnapshotLocations:
414414
# `velero server` default: empty
415415
disableControllers:
416+
# `velero server` default: false
417+
disableInformerCache: false
416418
# `velero server` default: 1h
417419
garbageCollectionFrequency:
418420
# Set log-format for Velero pod. Default: text. Other option: json.
@@ -440,6 +442,9 @@ configuration:
440442
features:
441443
# `velero server` default: velero
442444
namespace:
445+
# additional command-line arguments that will be passed to the `velero server`
446+
# e.g.: extraArgs: ["--foo=bar"]
447+
extraArgs: []
443448

444449
# additional key/value pairs to be used as environment variables such as "AWS_CLUSTER_NAME: 'yourcluster.domain.tld'"
445450
extraEnvVars: {}

0 commit comments

Comments
 (0)