Skip to content

Commit

Permalink
fixed templating nil pointer error
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-salazar-klarrio committed May 23, 2023
1 parent 132758e commit 9cf28c4
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 9cf28c4

Please sign in to comment.