Skip to content

Commit 2f7014c

Browse files
author
Simon Emms
committed
[installer]: move the post-processing of stateful sets into installer
1 parent fce2d00 commit 2f7014c

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

install/installer/pkg/common/postprocess.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ var Processors = []Processor{
2121
Type: TypeMetaNetworkPolicy,
2222
Expression: "del(.status)",
2323
},
24+
// Remove "status" from root of all stateful sets
25+
{
26+
Type: TypeMetaStatefulSet,
27+
Expression: "del(.status)",
28+
},
2429
}
2530

2631
type Processor struct {

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,6 @@ spec:
311311
echo "Gitpod: render Kubernetes manifests"
312312
/app/installer render -c "${CONFIG_FILE}" --namespace {{repl Namespace }} --use-experimental-config > "${GITPOD_OBJECTS}/templates/gitpod.yaml"
313313
314-
# Workaround for #8532 and #8529
315-
echo "Gitpod: Remove the StatefulSet status object for OpenVSX Proxy"
316-
yq eval-all --inplace \
317-
'del(select(.kind == "StatefulSet" and .metadata.name == "openvsx-proxy").status)' \
318-
"${GITPOD_OBJECTS}/templates/gitpod.yaml"
319-
320314
if [ '{{repl ConfigOptionEquals "reg_incluster" "1" }}' = "true" ];
321315
then
322316
echo "Gitpod: Add the local registry secret to the in-cluster registry secret"

0 commit comments

Comments
 (0)