fix external registry config check
This commit is contained in:
@@ -86,7 +86,7 @@ Configuration:
|
||||
{{- if .Values.registry.deploy }}
|
||||
- Using internal Docker registry
|
||||
{{- else }}
|
||||
- Using external Docker registry at {{ .Values.registry.external.host }}:{{ .Values.registry.external.port }}
|
||||
- Using external Docker registry at {{ .Values.registry.external.host }}
|
||||
{{- if eq .Values.registry.external.host "localhost" }}
|
||||
|
||||
⚠️ Registry Warning:
|
||||
|
||||
@@ -33,8 +33,8 @@ This template will fail the Helm deployment if external config is missing for re
|
||||
{{- end }}
|
||||
|
||||
{{- if not .Values.registry.deploy }}
|
||||
{{- if or (not .Values.registry.external.host) (not .Values.registry.external.port) }}
|
||||
{{- fail "Registry external configuration is required when registry.deploy=false. Please provide registry.external.host and registry.external.port" }}
|
||||
{{- if or (not .Values.registry.external.host) }}
|
||||
{{- fail "Registry external configuration is required when registry.deploy=false. Please provide registry.external.host" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user