Skip to content

Commit fdf1358

Browse files
author
Simon Emms
committed
[kots]: add workaround for 8529
The Go library has a misconfiguration which adds in "replicas" and "availableReplicas" to the OpenVSX Proxy StatefulSet. This can cause validation issues dependent upon the version of Kubernetes that's being used. This removes the block from the rendered Kubernetes objects which is the expected behaviour.
1 parent f3a51dc commit fdf1358

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,20 @@ spec:
178178
echo "Gitpod: ${CONFIG_PATCH_FILE}=${config_patch}"
179179
yq eval-all --inplace 'select(fileIndex == 0) * select(fileIndex == 1)' "${CONFIG_FILE}" /tmp/patch.yaml
180180
181-
echo "Gitpod: Generate the Kubernetes objects and apply"
181+
echo "Gitpod: Generate the Kubernetes objects"
182182
config=$(cat "${CONFIG_FILE}")
183183
echo "Gitpod: ${CONFIG_FILE}=${config}"
184184
185-
/app/installer render -c "${CONFIG_FILE}" --namespace {{repl Namespace }} | kubectl apply -f -
185+
/app/installer render -c "${CONFIG_FILE}" --namespace {{repl Namespace }} > /tmp/gitpod.yaml
186+
187+
# Workaround for #8532 and #8529
188+
echo "Gitpod: Remove the StatefulSet status object for OpenVSX Proxy"
189+
yq eval-all --inplace \
190+
'del(select(.kind == "StatefulSet" and .metadata.name == "openvsx-proxy").status)' \
191+
/tmp/gitpod.yaml
192+
193+
echo "Gitpod: Apply the Kubernetes objects"
194+
kubectl apply -f /tmp/gitpod.yaml
186195
187196
echo "Gitpod: Installer job finished - goodbye"
188197
volumes:

0 commit comments

Comments
 (0)