Skip to content

Commit 3476edb

Browse files
ArthurSensroboquat
authored andcommitted
werft/deploy/post-process: Remove openvsx statefulsetstatus
Signed-off-by: ArthurSens <[email protected]>
1 parent c1c3955 commit 3476edb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.werft/jobs/build/installer/post-process.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,15 @@ while [ "$i" -le "$DOCS" ]; do
218218
yq m -x -i k8s.yaml -d "$i" /tmp/"$NAME"overrides.yaml
219219
fi
220220

221+
if [[ "openvsx-proxy" == "$NAME" ]] && [[ "$KIND" == "StatefulSet" ]]; then
222+
# Our installer is rendering StatefulSet Status field although it is not a necessary field.
223+
# In fact, the fields under StatefulSet status has changed over the last Kubernetes versions,
224+
# We're being hit by this while trying to install Gitpod on GKE and k3s running different versions
225+
# where 'availableReplicas' is unkown in GKE while being required on k3s.
226+
# This workaround should be deleted when https://github.com/gitpod-io/gitpod/issues/8529 gets fixed.
227+
yq d -i k8s.yaml -d "$i" 'status'
228+
fi
229+
221230
if [[ ! -v WITH_VM ]] && [[ "ws-proxy" == "$NAME" ]] && [[ "$KIND" == "Service" ]]; then
222231
WORK="overrides for $NAME $KIND"
223232
echo "$WORK"

0 commit comments

Comments
 (0)