fix external registry config check

This commit is contained in:
nicktrn
2025-06-30 13:30:16 +01:00
parent 4ba655377e
commit 74b0208dd4
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 }}