Skip to content

Commit c871f52

Browse files
authored
fix(argo-workflows): create service account secrets (#3826)
1 parent ae32055 commit c871f52

4 files changed

Lines changed: 24 additions & 3 deletions

File tree

charts/argo-workflows/Chart.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ appVersion: v4.0.4
33
name: argo-workflows
44
description: A Helm chart for Argo Workflows
55
type: application
6-
version: 1.0.7
6+
version: 1.0.8
77
icon: https://argo-workflows.readthedocs.io/en/stable/assets/logo.png
88
home: https://github.com/argoproj/argo-helm
99
sources:
@@ -16,5 +16,8 @@ annotations:
1616
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
1717
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
1818
artifacthub.io/changes: |
19-
- kind: changed
20-
description: Bump argo-workflows to v4.0.4
19+
- kind: fixed
20+
description: Fix missing service account secrets
21+
links:
22+
- name: GitHub Issue
23+
url: https://github.com/argoproj/argo-helm/issues/3236

charts/argo-workflows/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ Fields to note:
244244
| workflow.rbac.serviceAccounts | list | `[]` | Extra service accounts to be added to the RoleBinding |
245245
| workflow.serviceAccount.annotations | object | `{}` | Annotations applied to created service account |
246246
| workflow.serviceAccount.create | bool | `false` | Specifies whether a service account should be created |
247+
| workflow.serviceAccount.createSecret | bool | `false` | Specifies whether a secret for each service account should be created |
247248
| workflow.serviceAccount.labels | object | `{}` | Labels applied to created service account |
248249
| workflow.serviceAccount.name | string | `"argo-workflow"` | Service account which is used to run workflows |
249250
| workflow.serviceAccount.pullSecrets | list | `[]` | Secrets with credentials to pull images from a private registry. Same format as `.Values.images.pullSecrets` |

charts/argo-workflows/templates/controller/workflow-sa.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,20 @@ metadata:
2121
imagePullSecrets:
2222
{{- toYaml . | nindent 2 }}
2323
{{- end }}
24+
{{- if $.Values.workflow.serviceAccount.createSecret }}
25+
secrets:
26+
- name: {{ $.Values.workflow.serviceAccount.name }}.service-account-token
27+
---
28+
apiVersion: v1
29+
kind: Secret
30+
type: kubernetes.io/service-account-token
31+
metadata:
32+
name: {{ $.Values.workflow.serviceAccount.name }}.service-account-token
33+
{{- with $namespace }}
34+
namespace: {{ . }}
35+
{{- end }}
36+
annotations:
37+
kubernetes.io/service-account.name: "{{ $.Values.workflow.serviceAccount.name }}"
38+
{{- end }}
2439
{{- end }}
2540
{{- end }}

charts/argo-workflows/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ workflow:
8888
serviceAccount:
8989
# -- Specifies whether a service account should be created
9090
create: false
91+
# -- Specifies whether a secret for each service account should be created
92+
createSecret: false
9193
# -- Labels applied to created service account
9294
labels: {}
9395
# -- Annotations applied to created service account

0 commit comments

Comments
 (0)