Skip to content

Commit

Permalink
Merge pull request #572 from jacksgt/server-args
Browse files Browse the repository at this point in the history
[velero] Allow passing custom arguments to velero server CLI
  • Loading branch information
qiuming-best authored May 15, 2024
2 parents 8343f85 + e523df5 commit f421a76
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
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.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:
Expand Down
7 changes: 7 additions & 0 deletions charts/velero/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ spec:
{{- with .disableControllers }}
- --disable-controllers={{ . }}
{{- end }}
{{- with .disableInformerCache }}
- --disable-informer-cache={{ . }}
{{- end }}
{{- with .garbageCollectionFrequency }}
- --garbage-collection-frequency={{ . }}
{{- end }}
Expand Down Expand Up @@ -163,6 +166,10 @@ spec:
{{- with .namespace }}
- --namespace={{ . }}
{{- end }}
{{- with .extraArgs }}
### User-supplied overwrite flags
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- with .Values.resources }}
resources:
Expand Down
5 changes: 5 additions & 0 deletions charts/velero/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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: {}
Expand Down

0 comments on commit f421a76

Please sign in to comment.