-
Notifications
You must be signed in to change notification settings - Fork 13
Add support for CEL-based mutation rules #125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
On-behalf-of: @SAP [email protected]
|
/test all |
|
/kind feature |
|
/retest |
On-behalf-of: @SAP [email protected]
|
/test pull-api-syncagent-test-e2e-kcp-0.27 |
4 similar comments
|
/test pull-api-syncagent-test-e2e-kcp-0.27 |
|
/test pull-api-syncagent-test-e2e-kcp-0.27 |
|
/test pull-api-syncagent-test-e2e-kcp-0.27 |
|
/test pull-api-syncagent-test-e2e-kcp-0.27 |
|
Okay it feels the tests are indeed much more stable now #jinxedit 🤞 |
Summary
This adds CEL-based mutations to the syncagent. CEl is nice because it allows for simply arithmetic and logic operations without the possibility to too much danger.
The implementation is quite simple: You configure a tuple of (path,expression) and then the agent will find the value at the given JSONPath in an object, process it using the CEL expression and then writes the resulting value back into the object. THe selected value and both full objects are available as variables in the expression.
What Type of PR Is This?
/kind feature
Related Issue(s)
Fixes #73
Release Notes