Skip to content

Commit

Permalink
Remove post-process status removal
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Aug 12, 2022
1 parent b0f2394 commit c08dc55
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .werft/jobs/build/installer/post-process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,6 @@ while [ "$documentIndex" -le "$DOCS" ]; do
yq m -x -i k8s.yaml -d "$documentIndex" /tmp/"$NAME"overrides.yaml
fi

if [[ "openvsx-proxy" == "$NAME" ]] && [[ "$KIND" == "StatefulSet" ]]; then
# Our installer is rendering StatefulSet Status field although it is not a necessary field.
# In fact, the fields under StatefulSet status has changed over the last Kubernetes versions,
# We're being hit by this while trying to install Gitpod on GKE and k3s running different versions
# where 'availableReplicas' is unkown in GKE while being required on k3s.
# This workaround should be deleted when https://github.com/gitpod-io/gitpod/issues/8529 gets fixed.
yq d -i k8s.yaml -d "$documentIndex" 'status'
fi

if [[ ! -v WITH_VM ]] && [[ "ws-proxy" == "$NAME" ]] && [[ "$KIND" == "Service" ]]; then
WORK="overrides for $NAME $KIND"
echo "$WORK"
Expand Down

0 comments on commit c08dc55

Please sign in to comment.