Skip to content

Commit 35fd6c1

Browse files
authored
Merge pull request #1413 from zevisert/docs/add-mention-CEL-macros
docs: mention CEL macros when discussing health check expressions
2 parents 2437aaf + 6c7da05 commit 35fd6c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/spec/v1/kustomizations.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,10 @@ for the resource to be ready until the timeout is reached. To avoid this,
394394
make sure your CEL expressions are correct. The
395395
[CEL Playground](https://playcel.undistro.io/) is a useful resource for
396396
this task. The input passed to each expression is the custom resource
397-
object itself.
397+
object itself. You can check for field existence with the
398+
[`has(...)` CEL macro](https://github.com/google/cel-spec/blob/master/doc/langdef.md#macros),
399+
just be aware that `has(status)` errors if `status` does not (yet) exist
400+
on the top level of the resource you are using.
398401

399402
It's worth checking if [the library](/flux/cheatsheets/cel-healthchecks/)
400403
has expressions for the custom resources you are using.

0 commit comments

Comments
 (0)