Skip to content

Commit 5a04f3f

Browse files
committed
do encoding and decoding
Signed-off-by: Tarun Pothulapati <[email protected]>
1 parent b4a191e commit 5a04f3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install/kots/manifests/gitpod-installer-job.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,9 @@ spec:
338338
| base64 -d \
339339
> /tmp/gitpodregistry.json
340340
341-
342-
DOCKER_CONFIG='{{repl ConfigOptionData "reg_docker_config" }}'
343-
export REGISTRY_SECRET=$(cat "${DOCKER_CONFIG}" /tmp/gitpodregistry.json | jq -s '.[0] * .[1]' - - | base64 -w 0)
341+
DOCKER_CONFIG='{{repl ConfigOptionData "reg_docker_config" | Base64Encode }}'
342+
echo "${DOCKER_CONFIG}" | base64 -d > /tmp/userregistry.json
343+
export REGISTRY_SECRET=$(jq -s '.[0] * .[1]' /tmp/userregistry.json /tmp/gitpodregistry.json | base64 -w 0)
344344
345345
echo "Gitpod: update the in-cluster registry secret"
346346
yq eval-all --inplace '(select(.kind == "Secret" and .metadata.name == "builtin-registry-auth") | .data.".dockerconfigjson") |= env(REGISTRY_SECRET)' \

0 commit comments

Comments
 (0)