From e51e5df9da23cb74df635c90adff3c370a2de237 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Fri, 17 Jan 2025 12:09:10 +0200 Subject: [PATCH] Add `SealedSecret` example to RFC Signed-off-by: Stefan Prodan --- rfcs/0000-custom-health-checks/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rfcs/0000-custom-health-checks/README.md b/rfcs/0000-custom-health-checks/README.md index d6809312..33a9f832 100644 --- a/rfcs/0000-custom-health-checks/README.md +++ b/rfcs/0000-custom-health-checks/README.md @@ -136,6 +136,16 @@ specify the conditions that need to be met in order to determine the status of a custom resource. This enables Flux to query any `.status` field, besides the standard `Ready` condition, and evaluate it using a CEL expression. +Example for `SealedSecret` which has a `Synced` condition: + +```yaml + - apiVersion: bitnami.com/v1alpha1 + kind: SealedSecret + inProgress: "metadata.generation != status.observedGeneration" + failed: "status.conditions.filter(e, e.type == 'Synced').all(e, e.status == 'False')" + current: "status.conditions.filter(e, e.type == 'Synced').all(e, e.status == 'True')" +``` + #### Use Flux dependencies for Kubernetes ClusterAPI > As a Flux user, I want to be able to use Flux dependencies bases on the