From 8d882101b5b836611cf09315e88264cd8a82b661 Mon Sep 17 00:00:00 2001 From: nicktrn <55853254+nicktrn@users.noreply.github.com> Date: Mon, 30 Jun 2025 08:46:58 +0100 Subject: [PATCH] fix both internal and external registry host --- hosting/k8s/helm/templates/_helpers.tpl | 4 ++-- hosting/k8s/helm/values.yaml | 27 +++++++++++++++---------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/hosting/k8s/helm/templates/_helpers.tpl b/hosting/k8s/helm/templates/_helpers.tpl index 3087709f1..74b349a12 100644 --- a/hosting/k8s/helm/templates/_helpers.tpl +++ b/hosting/k8s/helm/templates/_helpers.tpl @@ -238,9 +238,9 @@ Registry connection details */}} {{- define "trigger-v4.registry.host" -}} {{- if .Values.registry.deploy -}} -{{ include "trigger-v4.fullname" . }}-registry:{{ .Values.registry.service.port }} +{{ .Values.registry.host }} {{- else -}} -{{ .Values.registry.external.host }}:{{ .Values.registry.external.port }} +{{ .Values.registry.external.host }} {{- end -}} {{- end }} diff --git a/hosting/k8s/helm/values.yaml b/hosting/k8s/helm/values.yaml index d44b83cd7..e860c0521 100644 --- a/hosting/k8s/helm/values.yaml +++ b/hosting/k8s/helm/values.yaml @@ -492,20 +492,34 @@ s3: # Docker Registry configuration registry: - # EXPERIMENTAL - requires TLS setup or additional cluster configuration. Configure `external` details instead. + # EXPERIMENTAL - requires ingress/TLS setup or additional cluster configuration. Configure `external` details instead. deploy: false - repositoryNamespace: "trigger" # Docker repository namespace for deployed images, will be part of the image ref + # This will be used when deploy: true + host: "registry.example.com" + + # Docker repository namespace for deployed images, will be part of the image ref + repositoryNamespace: "trigger" + image: registry: docker.io repository: registry tag: "2" pullPolicy: IfNotPresent + auth: enabled: true username: "registry-user" password: "very-secure-indeed" + # External Registry connection (when deploy: false) + external: + host: "localhost:5001" + auth: + enabled: false + username: "" + password: "" + podAnnotations: {} # podSecurityContext: @@ -571,15 +585,6 @@ registry: failureThreshold: 60 successThreshold: 1 - # External Registry connection (when deploy: false) - external: - host: "localhost" - port: 5001 - auth: - enabled: false - username: "" - password: "" - # Extra environment variables for Registry extraEnvVars: []