Skip to content

Commit

Permalink
fixed templating nil pointer error
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Billiet <[email protected]>
  • Loading branch information
adrian-salazar-klarrio authored and TomBillietKlarrio committed Dec 14, 2023
1 parent 8098328 commit ea48b8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/zookeeper/templates/post-install-upgrade-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ roleRef:

apiVersion: v1
kind: ServiceAccount
{{- if or .Values.global.imagePullSecrets .Values.serviceAccount.imagePullSecrets }}
{{- if .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- range (default .Values.global.imagePullSecrets .Values.serviceAccount.imagePullSecrets) }}
{{- range .Values.global.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
Expand Down
5 changes: 5 additions & 0 deletions charts/zookeeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ image:

triggerRollingRestart: false

global:
# Lists the secrets you need to use to pull zookeeper image from a private registry.
imagePullSecrets: []
# - private-registry-key

domainName:
labels: {}
ports: []
Expand Down

0 comments on commit ea48b8c

Please sign in to comment.