mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
Add ClusterAPI example to RFC
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
e51e5df9da
commit
6f6d3fb269
1 changed files with 10 additions and 0 deletions
|
|
@ -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.status == 'False')"
|
||||
current: "status.conditions.filter(e, e.type == 'Ready').all(e, e.status == 'True')"
|
||||
```
|
||||
|
||||
### Alternatives
|
||||
|
||||
We need an expression language that is flexible enough to cover all possible use
|
||||
|
|
|
|||
Loading…
Reference in a new issue