Skip to content

Commit

Permalink
[installer]: document the StatefulSet validation error and workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Emms authored and roboquat committed Mar 2, 2022
1 parent 3476edb commit baee93a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions install/installer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,24 @@ yq eval-all --inplace \
gitpod.yaml
```

## Error validating `StatefulSet.status`

```shell
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
```
Depending upon your Kubernetes implementation, you may receive this error. This is
due to a bug in the underlying StatefulSet dependency, which is used to generate the
OpenVSX proxy (see [#8529](https://github.com/gitpod-io/gitpod/issues/8529)).
To fix this, you will need to post-process the rendered YAML to remove the `status` field.
```shell
yq eval-all --inplace \
'del(select(.kind == "StatefulSet" and .metadata.name == "openvsx-proxy").status)' \
gitpod.yaml
```
---
# What is installed
Expand Down

0 comments on commit baee93a

Please sign in to comment.