Skip to content

Commit baee93a

Browse files
Simon Emmsroboquat
Simon Emms
authored andcommitted
[installer]: document the StatefulSet validation error and workaround
1 parent 3476edb commit baee93a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

install/installer/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,24 @@ yq eval-all --inplace \
163163
gitpod.yaml
164164
```
165165

166+
## Error validating `StatefulSet.status`
167+
168+
```shell
169+
error: error validating "gitpod.yaml": error validating data: ValidationError(StatefulSet.status): missing required field "availableReplicas" in io.k8s.api.apps.v1.StatefulSetStatus; if you choose to ignore these errors, turn validation off with --validate=false
170+
```
171+
172+
Depending upon your Kubernetes implementation, you may receive this error. This is
173+
due to a bug in the underlying StatefulSet dependency, which is used to generate the
174+
OpenVSX proxy (see [#8529](https://github.com/gitpod-io/gitpod/issues/8529)).
175+
176+
To fix this, you will need to post-process the rendered YAML to remove the `status` field.
177+
178+
```shell
179+
yq eval-all --inplace \
180+
'del(select(.kind == "StatefulSet" and .metadata.name == "openvsx-proxy").status)' \
181+
gitpod.yaml
182+
```
183+
166184
---
167185
168186
# What is installed

0 commit comments

Comments
 (0)