Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9cf28c4

Browse files
committedMay 23, 2023
fixed templating nil pointer error
1 parent 132758e commit 9cf28c4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
 

‎charts/zookeeper/templates/post-install-upgrade-hooks.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ roleRef:
3838

3939
apiVersion: v1
4040
kind: ServiceAccount
41-
{{- if or .Values.global.imagePullSecrets .Values.serviceAccount.imagePullSecrets }}
41+
{{- if .Values.global.imagePullSecrets }}
4242
imagePullSecrets:
43-
{{- range (default .Values.global.imagePullSecrets .Values.serviceAccount.imagePullSecrets) }}
43+
{{- range .Values.global.imagePullSecrets }}
4444
- name: {{ . }}
4545
{{- end }}
4646
{{- end }}

‎charts/zookeeper/values.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ image:
88

99
triggerRollingRestart: false
1010

11+
global:
12+
# Lists the secrets you need to use to pull zookeeper image from a private registry.
13+
imagePullSecrets: []
14+
# - private-registry-key
15+
1116
domainName:
1217
labels: {}
1318
ports: []

0 commit comments

Comments
 (0)
Please sign in to comment.