Skip to content

Commit

Permalink
Also use global pullsecrets in zookeeper object
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Billiet <[email protected]>
  • Loading branch information
TomBillietKlarrio committed Dec 19, 2023
1 parent c95d708 commit de6d003
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions charts/zookeeper/templates/zookeeper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,11 @@ spec:
terminationGracePeriodSeconds: {{ .Values.pod.terminationGracePeriodSeconds }}
{{- end }}
serviceAccountName: {{ default "zookeeper" .Values.pod.serviceAccountName }}
{{- if .Values.pod.imagePullSecrets }}
{{- if or .Values.global.imagePullSecrets .Values.pod.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.pod.imagePullSecrets | indent 6 }}
{{- range (default .Values.global.imagePullSecrets .Values.pod.imagePullSecrets) }}
- name: {{ . }}
{{- end }}
{{- end }}
{{- if .Values.clientService }}
clientService:
Expand Down
5 changes: 5 additions & 0 deletions charts/zookeeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ triggerRollingRestart: false

domainName:
labels: {}

serviceAccount: {}
## Optionally specify an array of imagePullSecrets. Will override the global parameter if set
# imagePullSecrets:

ports: []
# - containerPort: 2181
# name: client
Expand Down

0 comments on commit de6d003

Please sign in to comment.