Skip to content

Commit 9365247

Browse files
authored
Merge pull request #196 from cognifloyd/service-account-pull-secrets
Add the ability to define imagePullSecrets for service account
2 parents 430051f + 3b193bd commit 9365247

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## In Development
44
* Updated redis constant sentinel ID which will allow other sentinel peers to update to the new given IP in case of pod failure or worker node reboots. (#191) (by @manisha-tanwar)
5+
* Add optional imagePullSecrets to ServiceAccount using `serviceAccount.pullSecret` from values.yaml. If pods do not have imagePullSecrets (eg without `image.pullSecret` in values.yaml), k8s populates them from the ServiceAccount. (#196) (by @cognifloyd)
56
* Reformat some yaml strings so that single quotes wrap strings that include double quotes (#194) (by @cognifloyd)
67

78
## v0.60.0

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)