Skip to content

Commit b31a648

Browse files
BrianKoppkishorj
andauthored
Add imagePullSecrets option to ServiceAccount in helm chart (#2624)
* Add option for imagePullSecrets on service account * Make default imagePullSecrets empty * Update helm/aws-load-balancer-controller/values.yaml * Update helm/aws-load-balancer-controller/values.yaml Co-authored-by: Kishor Joshi <[email protected]>
1 parent b065b69 commit b31a648

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

helm/aws-load-balancer-controller/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ The default values set by the application itself can be confirmed [here](https:/
185185
| `rbac.create` | if `true`, create and use RBAC resources | `true` |
186186
| `serviceAccount.annotations` | optional annotations to add to service account | None |
187187
| `serviceAccount.automountServiceAccountToken` | Automount API credentials for a Service Account | `true` |
188+
| `serviceAccount.imagePullSecrets` | List of image pull secrets to add to the Service Account | `[]` |
188189
| `serviceAccount.create` | If `true`, create a new service account | `true` |
189190
| `serviceAccount.name` | Service account to be used | None |
190191
| `terminationGracePeriodSeconds` | Time period for controller pod to do a graceful shutdown | 10 |

helm/aws-load-balancer-controller/templates/serviceaccount.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ metadata:
1111
{{- toYaml . | nindent 4 }}
1212
{{- end }}
1313
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
14+
{{- with .Values.serviceAccount.imagePullSecrets }}
15+
imagePullSecrets:
16+
{{ toYaml . }}
17+
{{- end }}
1418
{{- end -}}

helm/aws-load-balancer-controller/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ serviceAccount:
2626
name:
2727
# Automount API credentials for a Service Account.
2828
automountServiceAccountToken: true
29+
# List of image pull secrets to add to the Service Account.
30+
imagePullSecrets:
31+
# - name: docker
2932

3033
rbac:
3134
# Specifies whether rbac resources should be created

0 commit comments

Comments
 (0)