Skip to content

Commit

Permalink
Merge pull request #23 from aerfio/aerfio/improve-docs
Browse files Browse the repository at this point in the history
Improve example CEL expression in documentation
  • Loading branch information
negz authored May 28, 2024
2 parents 58e86dc + 993f39e commit d3e22b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ spec:
* `observed.composite.resource.spec.widgets == 42`
* `observed.resources['bucket'].connection_details['user'] == b'admin'`
* `desired.resources['bucket'].resource.spec.widgets == 42`
* `has(desired.resources.bucket)`
* `"bucket" in desired.resources`

Expressions must evaluate to `true` for the composed resource to be included.

Expand All @@ -90,4 +90,4 @@ spec:
[cel]: https://github.com/google/cel-spec
[filter]: https://en.wikipedia.org/wiki/Filter_(higher-order_function)
[proto]: https://buf.build/crossplane/crossplane/docs/main:apiextensions.fn.proto.v1beta1#apiextensions.fn.proto.v1beta1.RunFunctionRequest
[cel-intro]: https://github.com/google/cel-spec/blob/master/doc/intro.md
[cel-intro]: https://github.com/google/cel-spec/blob/master/doc/intro.md

0 comments on commit d3e22b6

Please sign in to comment.