From 5e02307abf51850be91eb77f1f39ad9fb10cd603 Mon Sep 17 00:00:00 2001 From: Simon Campion Date: Mon, 24 Jun 2024 13:23:24 +0200 Subject: [PATCH] feat: add extraArgs to Velero node agent configuration Signed-off-by: Simon Campion --- charts/velero/Chart.yaml | 2 +- charts/velero/templates/node-agent-daemonset.yaml | 3 +++ charts/velero/values.yaml | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/velero/Chart.yaml b/charts/velero/Chart.yaml index c9b49b63..60af2be8 100644 --- a/charts/velero/Chart.yaml +++ b/charts/velero/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 1.14.0 kubeVersion: ">=1.16.0-0" description: A Helm chart for velero name: velero -version: 7.0.0 +version: 7.1.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/node-agent-daemonset.yaml b/charts/velero/templates/node-agent-daemonset.yaml index 104f9559..68fedf3f 100644 --- a/charts/velero/templates/node-agent-daemonset.yaml +++ b/charts/velero/templates/node-agent-daemonset.yaml @@ -109,6 +109,9 @@ spec: - --log-format={{ . }} {{- end }} {{- end }} + {{- with .Values.nodeAgent.extraArgs }} + {{- toYaml . | nindent 12 }} + {{- end }} volumeMounts: {{- if .Values.credentials.useSecret }} - name: cloud-credentials diff --git a/charts/velero/values.yaml b/charts/velero/values.yaml index 0f32df92..590eef90 100644 --- a/charts/velero/values.yaml +++ b/charts/velero/values.yaml @@ -560,6 +560,10 @@ nodeAgent: # Key/value pairs to be used as environment variables for the node-agent daemonset. Optional. extraEnvVars: {} + # Additional command-line arguments that will be passed to the node-agent. Optional. + # e.g.: extraArgs: ["--foo=bar"] + extraArgs: [] + # Configure the dnsPolicy of the node-agent daemonset # See: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy dnsPolicy: ClusterFirst