File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -144,20 +144,20 @@ spec:
144
144
145
145
if [ '{{repl HasLocalRegistry }}' = "true" ];
146
146
then
147
- echo "Gitpod: configuring mirrored container registry"
147
+ echo "Gitpod: configuring mirrored container registry for airgapped installation "
148
148
149
149
yq e -i ".repository = \"{{repl LocalRegistryAddress }}\"" "${CONFIG_FILE}"
150
150
yq e -i ".imagePullSecrets[0].kind = \"secret\"" "${CONFIG_FILE}"
151
151
yq e -i ".imagePullSecrets[0].name = \"{{repl ImagePullSecretName }}\"" "${CONFIG_FILE}"
152
152
yq e -i '.dropImageRepo = true' "${CONFIG_FILE}"
153
+
154
+ # Add the registry to the server allowlist
155
+ yq e -i ".containerRegistry.privateBaseImageAllowList += \"{{repl LocalRegistryHost }}\"" "${CONFIG_FILE}"
153
156
fi
154
157
155
158
# Output the local registry secret - this is proxy.replicated.com if user hasn't set their own
156
159
echo "{{repl LocalRegistryImagePullSecret }}" | base64 -d > /tmp/kotsregistry.json
157
160
158
- # Add the registries to the server allowlist
159
- yq e -i ".containerRegistry.privateBaseImageAllowList += $(cat /tmp/kotsregistry.json | jq '.auths' | jq -rc 'keys')" "${CONFIG_FILE}"
160
-
161
161
if [ '{{repl ConfigOptionEquals "reg_incluster" "0" }}' = "true" ];
162
162
then
163
163
echo "Gitpod: configuring external container registry"
You can’t perform that action at this time.
0 commit comments