From c2ad08a5e44a1c1426d959cae75dc005baf5aa0a Mon Sep 17 00:00:00 2001 From: shreddedbacon Date: Fri, 23 Feb 2024 15:14:51 +1100 Subject: [PATCH] chore: add legacy registry passthrough support --- charts/lagoon-build-deploy/Chart.yaml | 6 +++--- charts/lagoon-build-deploy/templates/deployment.yaml | 3 +++ charts/lagoon-build-deploy/values.yaml | 4 ++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/charts/lagoon-build-deploy/Chart.yaml b/charts/lagoon-build-deploy/Chart.yaml index 4ce5c160..53b8caad 100644 --- a/charts/lagoon-build-deploy/Chart.yaml +++ b/charts/lagoon-build-deploy/Chart.yaml @@ -16,11 +16,11 @@ kubeVersion: ">= 1.23.0-0" type: application -version: 0.26.3 +version: 0.26.4 -appVersion: v0.15.4 +appVersion: v0.15.5 annotations: artifacthub.io/changes: | - kind: changed - description: added clusterroles for tasks and builds + description: added legacy registry passthrough support diff --git a/charts/lagoon-build-deploy/templates/deployment.yaml b/charts/lagoon-build-deploy/templates/deployment.yaml index 75d678e6..2f6cd49d 100644 --- a/charts/lagoon-build-deploy/templates/deployment.yaml +++ b/charts/lagoon-build-deploy/templates/deployment.yaml @@ -167,6 +167,9 @@ spec: {{- with .Values.timeoutForLongRunningTaskPods }} - "--timeout-longrunning-task-pod-cleanup={{ . }}" {{- end }} + {{- with .Values.unauthenticatedRegistry }} + - "--unauthenticated-registry={{ . }}" + {{- end }} {{- with .Values.extraArgs }} {{- toYaml . | nindent 8 }} {{- end }} diff --git a/charts/lagoon-build-deploy/values.yaml b/charts/lagoon-build-deploy/values.yaml index ed1d2871..742b34e2 100644 --- a/charts/lagoon-build-deploy/values.yaml +++ b/charts/lagoon-build-deploy/values.yaml @@ -6,6 +6,10 @@ rabbitMQHostname: "" rabbitMQPassword: "" rabbitMQUsername: "" +# This is here due to the removal of the passthrough from core https://github.com/uselagoon/lagoon/pull/3659 +# if you leveraged this value in your core, you should ensure you update your remotes with this value to reflect what you previously had provided in core +# unauthenticatedRegistry: registry.lagoon.svc:5000 + # NOTE!! lagoon api/host/port values if left empty fall back to the task api/host/port values # taskSSHHost/lagoonTokenHost is the hostname for the lagoon token service # taskSSHHost will be deprecated in favor of lagoonTokenHost