Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion helm/mysql-operator/templates/service_account_operator.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- $disable_lookups:= .Values.disableLookups }}
{{- $install_namespace := .Release.Namespace }}
{{- if and (.Release.IsInstall) (eq $install_namespace "default") }}
{{ fail "Please provide a namespace with -n/--namespace . The operator cannot be installed in the 'default' namespace" }}
Expand All @@ -13,7 +14,7 @@ imagePullSecrets:
{{- if not $secret_name }}
{{- fail "image.pullSecrets.secretName is required when pull secrets are enabled" }}
{{- end }}
{{- if not (lookup "v1" "Secret" $install_namespace $secret_name) }}
{{- if and (not $disable_lookups) (not (lookup "v1" "Secret" $install_namespace $secret_name)) }}
{{- $err := printf "image.pullSecrets.secretName: secret '%s' not found in namespace '%s'" $secret_name $install_namespace }}
{{- fail $err }}
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions helm/mysql-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ image:
enabled: false
secretName:

disableLookups: false

envs:
imagesPullPolicy: IfNotPresent
imagesDefaultRegistry:
Expand Down