From bb8346b3f539735e249dc99d31a75c4eb0a63a8a Mon Sep 17 00:00:00 2001 From: Joseph McGovern Date: Wed, 2 Dec 2020 14:31:32 -0600 Subject: [PATCH] feat(argo): Populate workflow service account with pull secrets Signed-off-by: Joseph McGovern --- charts/argo/Chart.yaml | 2 +- charts/argo/templates/workflow-sa.yaml | 4 ++++ charts/argo/values.yaml | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/argo/Chart.yaml b/charts/argo/Chart.yaml index 44c812c7..71322f08 100644 --- a/charts/argo/Chart.yaml +++ b/charts/argo/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: v2.12.3 description: A Helm chart for Argo Workflows name: argo -version: 0.15.2 +version: 0.15.3 icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png home: https://github.com/argoproj/argo-helm maintainers: diff --git a/charts/argo/templates/workflow-sa.yaml b/charts/argo/templates/workflow-sa.yaml index 45d97cf0..16a57bd1 100644 --- a/charts/argo/templates/workflow-sa.yaml +++ b/charts/argo/templates/workflow-sa.yaml @@ -10,4 +10,8 @@ metadata: annotations: {{- toYaml . | nindent 4 }} {{- end }} +{{- with .Values.workflow.serviceAccount.imagePullSecrets }} +imagePullSecrets: + {{- toYaml . | nindent 2 }} +{{- end }} {{- end }} diff --git a/charts/argo/values.yaml b/charts/argo/values.yaml index b1491b14..dec1a9c7 100644 --- a/charts/argo/values.yaml +++ b/charts/argo/values.yaml @@ -29,6 +29,7 @@ workflow: create: false # Specifies whether a service account should be created annotations: {} name: "argo-workflow" # Service account which is used to run workflows + imagePullSecrets: [] # Secrets with credentials to pull images from a private registry rbac: create: false # adds Role and RoleBinding for the above specified service account to be able to run workflows