Skip to content

Commit

Permalink
Fix imagePullSecret handling when secret is not set (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpmerron-ltd authored Aug 5, 2022
1 parent 90f6e1e commit 58939e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
imagePullSecrets:
- name: {{ .Values.global.alfrescoRegistryPullSecrets }}
{{- end }}
initContainers:
{{- if .Values.activemq }}
{{ fail "Using activemq.[host|port|user|password|external] in subcharts is not supported anymore. Use messageBroker.* instead" }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ spec:
{{- if .Values.transformrouter.nodeSelector }}
nodeSelector: {{- .Values.transformrouter.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
imagePullSecrets:
- name: {{ .Values.global.alfrescoRegistryPullSecrets }}
{{- end }}
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
Expand Down

0 comments on commit 58939e5

Please sign in to comment.