File tree 3 files changed +10
-8
lines changed
installer/pkg/postprocess
3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,11 @@ import (
10
10
"strings"
11
11
12
12
"github.com/gitpod-io/gitpod/installer/pkg/common"
13
+ openvsxproxy "github.com/gitpod-io/gitpod/installer/pkg/components/openvsx-proxy"
13
14
"github.com/mikefarah/yq/v4/pkg/yqlib"
14
15
logging "gopkg.in/op/go-logging.v1"
15
16
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
17
+ "k8s.io/utils/pointer"
16
18
)
17
19
18
20
// Processors list of processes executed on each resource document
@@ -22,6 +24,12 @@ var Processors = []Processor{
22
24
Type : common .TypeMetaNetworkPolicy ,
23
25
Expression : "del(.status)" ,
24
26
},
27
+ // Remove "status" from root of OpenVSXProxy stateful sets
28
+ {
29
+ Type : common .TypeMetaStatefulSet ,
30
+ Expression : "del(.status)" ,
31
+ Name : pointer .String (openvsxproxy .Component ),
32
+ },
25
33
}
26
34
27
35
type Processor struct {
Original file line number Diff line number Diff line change 30
30
containers :
31
31
- name : installation-status
32
32
# This will normally be the release tag
33
- image : " eu.gcr.io/gitpod-core-dev/build/installer:sje-installer-clusterip.8 "
33
+ image : " eu.gcr.io/gitpod-core-dev/build/installer:sje-installer-post-process.4 "
34
34
command :
35
35
- /bin/sh
36
36
- -c
Original file line number Diff line number Diff line change 28
28
containers :
29
29
- name : installer
30
30
# This will normally be the release tag
31
- image : " eu.gcr.io/gitpod-core-dev/build/installer:sje-installer-clusterip.8 "
31
+ image : " eu.gcr.io/gitpod-core-dev/build/installer:sje-installer-post-process.4 "
32
32
volumeMounts :
33
33
- mountPath : /config-patch
34
34
name : config-patch
@@ -311,12 +311,6 @@ spec:
311
311
echo "Gitpod: render Kubernetes manifests"
312
312
/app/installer render -c "${CONFIG_FILE}" --namespace {{repl Namespace }} --use-experimental-config > "${GITPOD_OBJECTS}/templates/gitpod.yaml"
313
313
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
-
320
314
if [ '{{repl ConfigOptionEquals "reg_incluster" "1" }}' = "true" ];
321
315
then
322
316
echo "Gitpod: Add the local registry secret to the in-cluster registry secret"
You can’t perform that action at this time.
0 commit comments