From 0cf899eb712bc0f5b7f92089b45251b09e4cc30f Mon Sep 17 00:00:00 2001 From: Sebastian-RG Date: Sun, 2 Jun 2024 15:27:30 -0500 Subject: [PATCH] feat(issue-584): Adds ImagePullSecrets to Velero server ServiceAccount Signed-off-by: Sebastian-RG --- charts/velero/Chart.yaml | 2 +- charts/velero/templates/serviceaccount-server.yaml | 6 ++++++ charts/velero/values.yaml | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/velero/Chart.yaml b/charts/velero/Chart.yaml index 4b70b891..3a0a59c1 100644 --- a/charts/velero/Chart.yaml +++ b/charts/velero/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 1.13.2 kubeVersion: ">=1.16.0-0" description: A Helm chart for velero name: velero -version: 6.5.0 +version: 6.6.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/serviceaccount-server.yaml b/charts/velero/templates/serviceaccount-server.yaml index c2953645..bfaf0d8b 100644 --- a/charts/velero/templates/serviceaccount-server.yaml +++ b/charts/velero/templates/serviceaccount-server.yaml @@ -16,4 +16,10 @@ metadata: {{- with .Values.serviceAccount.server.labels }} {{- toYaml . | nindent 4 }} {{- end }} +{{- if .Values.serviceAccount.server.imagePullSecrets }} + imagePullSecrets: + {{- range .Values.serviceAccount.server.imagePullSecrets }} + - name: {{ . }} + {{- end }} +{{- end }} {{- end }} diff --git a/charts/velero/values.yaml b/charts/velero/values.yaml index 2cd9619e..09a75d2f 100644 --- a/charts/velero/values.yaml +++ b/charts/velero/values.yaml @@ -485,6 +485,8 @@ serviceAccount: name: annotations: labels: + imagePullSecrets: [] + # - registrySecretName # Info about the secret to be used by the Velero deployment, which # should contain credentials for the cloud provider IAM account you've