Skip to content

Commit b20f77c

Browse files
author
Simon Emms
committed
[kots]: delete workspace pods before installing Gitpod
1 parent 9993ba6 commit b20f77c

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

install/installer/scripts/kots-install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ EOF
156156
HELM_TIMEOUT="1h"
157157
fi
158158

159+
echo "Gitpod: shut down any running workspaces/image-builders"
160+
kubectl delete pods -n "${NAMESPACE}" -l component=workspace --wait
161+
159162
# The long timeout is to ensure the TLS cert is created (if required)
160163
echo "Gitpod: Apply the Kubernetes objects with timeout of ${HELM_TIMEOUT}"
161164
helm upgrade \

install/kots/manifests/gitpod-installation-status.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ spec:
3030
containers:
3131
- name: installation-status
3232
# This will normally be the release tag
33-
image: "eu.gcr.io/gitpod-core-dev/build/installer:tar-installer-env-refactor.2"
33+
image: "eu.gcr.io/gitpod-core-dev/build/installer:sje-installer-kill-workspaces.1"
3434
envFrom:
3535
- configMapRef:
3636
name: gitpod-kots-config

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ spec:
3939
containers:
4040
- name: installer
4141
# This will normally be the release tag
42-
image: "eu.gcr.io/gitpod-core-dev/build/installer:tar-installer-env-refactor.2"
42+
image: "eu.gcr.io/gitpod-core-dev/build/installer:sje-installer-kill-workspaces.1"
4343
volumeMounts:
4444
- mountPath: /mnt/node0
4545
name: node-fs0

0 commit comments

Comments
 (0)