From 74b0208dd4f7edfb910b5780607e612b0712bee2 Mon Sep 17 00:00:00 2001 From: nicktrn <55853254+nicktrn@users.noreply.github.com> Date: Mon, 30 Jun 2025 13:30:16 +0100 Subject: [PATCH] fix external registry config check --- hosting/k8s/helm/templates/NOTES.txt | 2 +- hosting/k8s/helm/templates/validate-external-config.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hosting/k8s/helm/templates/NOTES.txt b/hosting/k8s/helm/templates/NOTES.txt index e9cd84464..21f8f0b77 100644 --- a/hosting/k8s/helm/templates/NOTES.txt +++ b/hosting/k8s/helm/templates/NOTES.txt @@ -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: diff --git a/hosting/k8s/helm/templates/validate-external-config.yaml b/hosting/k8s/helm/templates/validate-external-config.yaml index c3bd1e075..47998f7d2 100644 --- a/hosting/k8s/helm/templates/validate-external-config.yaml +++ b/hosting/k8s/helm/templates/validate-external-config.yaml @@ -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 }}