Skip to content

Commit ced679a

Browse files
PothulapatiSimon Emms
authored and
Simon Emms
committed
[kots] load custom docker config correctly
This PR fixes the issue when a custom docker config json file is uploaded by the user. Signed-off-by: Tarun Pothulapati <[email protected]>
1 parent 3c4b37e commit ced679a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

install/installer/scripts/kots-install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ EOF
162162
| base64 -d \
163163
> /tmp/currentconfig.json
164164

165+
echo "${REGISTRY_DOCKER_CONFIG_JSON}" > /tmp/userconfig.json
165166
echo "Gitpod: update the in-cluster registry secret"
166167
REGISTRY_SECRET="$(jq -s '.[0] * .[1]' /tmp/userconfig.json /tmp/currentconfig.json | base64 -w 0)"
167168
export REGISTRY_SECRET

0 commit comments

Comments
 (0)