This repository was archived by the owner on Sep 6, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
set -eo pipefail
4
-
4
+ set -x
5
5
DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd -P)
6
6
if [ ! -f " ${DIR} /.env" ]; then
7
7
echo " Missing ${DIR} /.env configuration file."
@@ -227,10 +227,6 @@ function install_gitpod() {
227
227
gsutil mb " gs://${CONTAINER_REGISTRY_BUCKET} "
228
228
fi
229
229
230
- if [ -n " ${IMAGE_PULL_SECRET_FILE} " ] && [ -f " ${IMAGE_PULL_SECRET_FILE} " ]; then
231
- yq e -i ' .components.imageBuilderMk3.registry.secretName = "gitpod-image-pull-secret"' " ${DIR} /charts/assets/gitpod-values.yaml"
232
- fi
233
-
234
230
envsubst < " ${DIR} /charts/assets/gitpod-values.yaml" | helm upgrade --install gitpod gitpod/gitpod -f -
235
231
}
236
232
@@ -373,6 +369,11 @@ function install() {
373
369
--from-file=.dockerconfigjson=" ${IMAGE_PULL_SECRET_FILE} " \
374
370
--type=kubernetes.io/dockerconfigjson > /dev/null 2>&1 || true
375
371
fi
372
+
373
+ yq e -i ' .components.imageBuilderMk3.registry.secretName = "gitpod-image-pull-secret"' " ${DIR} /charts/assets/gitpod-values.yaml"
374
+ else
375
+ # ensure the chart installation does not fail without a secret.
376
+ yq e -i ' .components.imageBuilderMk3.registry = {}' " ${DIR} /charts/assets/gitpod-values.yaml"
376
377
fi
377
378
378
379
install_cert_manager
You can’t perform that action at this time.
0 commit comments