Skip to content

Commit

Permalink
Add ClusterAPI example to RFC
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed Jan 17, 2025
1 parent e51e5df commit 8eec794
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rfcs/0000-custom-health-checks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,16 @@ Using `.spec.healthCheckExprs`, Flux users can specify that the `Cluster`
kind is expected to have a `Ready` condition which will force Flux into waiting
for the ClusterAPI resources status to be populated.

Example for `Cluster`:

```yaml
- apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
inProgress: "metadata.generation != status.observedGeneration"
failed: "status.conditions.filter(e, e.type == 'Ready').all(e, e.observedGeneration == metadata.generation && e.status == 'False')"
current: "status.conditions.filter(e, e.type == 'Ready').all(e, e.observedGeneration == metadata.generation && e.status == 'True')"
```

### Alternatives

We need an expression language that is flexible enough to cover all possible use
Expand Down

0 comments on commit 8eec794

Please sign in to comment.