File tree 2 files changed +8
-6
lines changed
installer/pkg/postprocess 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,11 @@ import (
10
10
"os"
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 @@ -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