From 345bf7f9f044189b31e7091ca9ee86f25288db85 Mon Sep 17 00:00:00 2001 From: Simon Emms Date: Thu, 4 Aug 2022 10:42:11 +0000 Subject: [PATCH] [kots]: only add to base image allow list in airgapped mode --- install/kots/manifests/gitpod-installer-job.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/kots/manifests/gitpod-installer-job.yaml b/install/kots/manifests/gitpod-installer-job.yaml index bad00875199c1a..3b0e87c316af32 100644 --- a/install/kots/manifests/gitpod-installer-job.yaml +++ b/install/kots/manifests/gitpod-installer-job.yaml @@ -150,14 +150,14 @@ spec: yq e -i ".imagePullSecrets[0].kind = \"secret\"" "${CONFIG_FILE}" yq e -i ".imagePullSecrets[0].name = \"{{repl ImagePullSecretName }}\"" "${CONFIG_FILE}" yq e -i '.dropImageRepo = true' "${CONFIG_FILE}" + + # Add the registry to the server allowlist + yq e -i ".containerRegistry.privateBaseImageAllowList += \"{{repl LocalRegistryHost }}\"" "${CONFIG_FILE}" fi # Output the local registry secret - this is proxy.replicated.com if user hasn't set their own echo "{{repl LocalRegistryImagePullSecret }}" | base64 -d > /tmp/kotsregistry.json - # Add the registries to the server allowlist - yq e -i ".containerRegistry.privateBaseImageAllowList += $(cat /tmp/kotsregistry.json | jq '.auths' | jq -rc 'keys')" "${CONFIG_FILE}" - if [ '{{repl ConfigOptionEquals "reg_incluster" "0" }}' = "true" ]; then echo "Gitpod: configuring external container registry"