diff --git a/charts/ibm-mq/templates/serviceaccount.yaml b/charts/ibm-mq/templates/serviceaccount.yaml index 808a254..cfcd139 100644 --- a/charts/ibm-mq/templates/serviceaccount.yaml +++ b/charts/ibm-mq/templates/serviceaccount.yaml @@ -17,8 +17,10 @@ metadata: name: {{ include "ibm-mq.fullname" ( . ) }} labels: {{- include "ibm-mq.labels" . | nindent 4 }} +{{- if not .Values.image.disableDefaultPullSecret }} imagePullSecrets: - name: ibm-entitlement-key {{- if .Values.image.pullSecret }} - name: {{ .Values.image.pullSecret }} {{- end }} +{{- end }} diff --git a/charts/ibm-mq/values.yaml b/charts/ibm-mq/values.yaml index 408a93b..7e7c7aa 100644 --- a/charts/ibm-mq/values.yaml +++ b/charts/ibm-mq/values.yaml @@ -20,6 +20,8 @@ image: repository: icr.io/ibm-messaging/mq # tag is the tag to use for the container repository tag: 9.4.1.0-r1 + # disableDefaultPullSecret to use when pulling the image from a private registry without a pull secret + disableDefaultPullSecret: false # pullSecret is the secret to use when pulling the image from a private registry pullSecret: # pullPolicy is either IfNotPresent or Always (https://kubernetes.io/docs/concepts/containers/images/)