Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
docs(manifestwork): fix celExpressions example to use string array pe…
…r API spec

Signed-off-by: zhujian <[email protected]>
  • Loading branch information
zhujian7 committed Jul 18, 2025
commit 9b99e25538b8f6f0caf9530203480d964bfad815
12 changes: 6 additions & 6 deletions content/en/docs/concepts/work-distribution/manifestwork.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,12 @@ manifestConfigs:
- condition: Complete
type: CEL
celExpressions:
- expression: |
object.status.conditions.filter(
c, c.type == 'Complete' || c.type == 'Failed'
).exists(
c, c.status == 'True'
)
- |
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix error:

Error from server (BadRequest): error when creating "cel.yaml": ManifestWork in version "v1" cannot be handled as a ManifestWork: strict decoding error: unknown field "spec.manifestConfigs[0].conditionRules[0].celExpressions[0].expression"

object.status.conditions.filter(
c, c.type == 'Complete' || c.type == 'Failed'
).exists(
c, c.status == 'True'
)
messageExpression: |
result ? "Custom resource is complete" : "Custom resource is not complete"
```
Expand Down