Skip to content

Commit 3c58a2d

Browse files
committed
Add the ability to define imagePullSecrets for service account
1 parent 31e0171 commit 3c58a2d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

templates/service-account.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@ metadata:
1313
app: "{{ template "stackstorm-ha.name" . }}"
1414
heritage: "{{ .Release.Service }}"
1515
release: "{{ .Release.Name }}"
16+
{{- if .Values.serviceAccount.pullSecret }}
17+
imagePullSecrets:
18+
- name: "{{ .Values.serviceAccount.pullSecret }}"
19+
{{- end }}
1620
{{- end }}

values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ serviceAccount:
2929
serviceAccountAnnotations: {}
3030
# Used to override service account name
3131
serviceAccountName:
32+
# Fallback image pull secret.
33+
# If a pod does not have pull secrets, k8s will use the service account's pull secrets.
34+
# See: https://kubernetes.io/docs/reference/access-authn-authz/service-accounts-admin/#serviceaccount-admission-controller
35+
#pullSecret: "your-pull-secret"
3236

3337
##
3438
## StackStorm shared variables

0 commit comments

Comments
 (0)