From e523df5b79eda37980aed1bca6c2e5d9c46c1c8d Mon Sep 17 00:00:00 2001 From: Jack Henschel Date: Mon, 13 May 2024 09:34:06 +0200 Subject: [PATCH] [velero] Allow passing custom arguments to velero server CLI Signed-off-by: Jack Henschel --- charts/velero/Chart.yaml | 2 +- charts/velero/templates/deployment.yaml | 7 +++++++ charts/velero/values.yaml | 5 +++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/charts/velero/Chart.yaml b/charts/velero/Chart.yaml index e53e718c..2da3acd4 100644 --- a/charts/velero/Chart.yaml +++ b/charts/velero/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 1.13.0 kubeVersion: ">=1.16.0-0" description: A Helm chart for velero name: velero -version: 6.1.0 +version: 6.2.0 home: https://github.com/vmware-tanzu/velero icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png sources: diff --git a/charts/velero/templates/deployment.yaml b/charts/velero/templates/deployment.yaml index 0468cba9..448e8bf7 100644 --- a/charts/velero/templates/deployment.yaml +++ b/charts/velero/templates/deployment.yaml @@ -123,6 +123,9 @@ spec: {{- with .disableControllers }} - --disable-controllers={{ . }} {{- end }} + {{- with .disableInformerCache }} + - --disable-informer-cache={{ . }} + {{- end }} {{- with .garbageCollectionFrequency }} - --garbage-collection-frequency={{ . }} {{- end }} @@ -163,6 +166,10 @@ spec: {{- with .namespace }} - --namespace={{ . }} {{- end }} + {{- with .extraArgs }} + ### User-supplied overwrite flags + {{- toYaml . | nindent 12 }} + {{- end }} {{- end }} {{- with .Values.resources }} resources: diff --git a/charts/velero/values.yaml b/charts/velero/values.yaml index d2ae4a15..a394e40c 100644 --- a/charts/velero/values.yaml +++ b/charts/velero/values.yaml @@ -413,6 +413,8 @@ configuration: defaultVolumeSnapshotLocations: # `velero server` default: empty disableControllers: + # `velero server` default: false + disableInformerCache: false # `velero server` default: 1h garbageCollectionFrequency: # Set log-format for Velero pod. Default: text. Other option: json. @@ -440,6 +442,9 @@ configuration: features: # `velero server` default: velero namespace: + # additional command-line arguments that will be passed to the `velero server` + # e.g.: extraArgs: ["--foo=bar"] + extraArgs: [] # additional key/value pairs to be used as environment variables such as "AWS_CLUSTER_NAME: 'yourcluster.domain.tld'" extraEnvVars: {}