diff --git a/helm/templates/notificationmanagers.yaml b/helm/templates/notificationmanagers.yaml index f634f49..9559425 100644 --- a/helm/templates/notificationmanagers.yaml +++ b/helm/templates/notificationmanagers.yaml @@ -39,7 +39,7 @@ spec: sidecars: tenant: {{- if .Values.kubesphere.image }} - image: {{ .Values.kubesphere.image }} + image: {{ include "global.imageRegistry" . }}{{ .Values.kubesphere.image }} {{- else }} image: {{ include "global.imageRegistry" . }}{{ .Values.notificationmanager.sidecar.image.repo }}:{{ .Values.kubesphere.version }} {{- end }} diff --git a/helm/templates/operator.yaml b/helm/templates/operator.yaml index bd6d8ea..1257476 100644 --- a/helm/templates/operator.yaml +++ b/helm/templates/operator.yaml @@ -73,3 +73,7 @@ spec: {{- toYaml .Values.operator.affinity | nindent 8 }} tolerations: {{- toYaml .Values.operator.tolerations | nindent 8 }} + {{- with .Values.global.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/helm/values.yaml b/helm/values.yaml index 7f4b678..1c10156 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -8,6 +8,7 @@ kubesphere: global: imageRegistry: "" nodeSelector: {} + imagePullSecrets: [] imageRegistryOverride: "" # value of notification-manager-operator operator: