-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
|
Skipping CI for Draft Pull Request. |
|
/test all |
|
/kind feature |
|
/retest |
|
/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 🤞 |
On-behalf-of: @SAP christoph.mewes@sap.com
ntnn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
|
LGTM label has been added. DetailsGit tree hash: 2f0ad99862bfe0e28a349c545213d497c21e8f2c |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ntnn, xrstf The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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