Skip to content
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

support string evaluation in CEL expressions #882

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

kathleenfrench
Copy link
Contributor

related: fluxcd/notification-controller#589 (comment)

in order to leverage the cel flux package for the purposes of evaluating a commit status/id expression, it's necessary to expose a function for evaluating strings (similar to EvaluateBoolean)

Copy link
Member

@matheuscscp matheuscscp left a comment

Choose a reason for hiding this comment

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

@kathleenfrench Really glad to see a contribution in this lib I created recently, thanks very much! 😁

@kathleenfrench kathleenfrench force-pushed the kfrench/cel-eval-string branch 2 times, most recently from 5985a90 to f7bee61 Compare March 11, 2025 17:43
Copy link
Member

@matheuscscp matheuscscp left a comment

Choose a reason for hiding this comment

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

Thanks very much @kathleenfrench 🙏

Copy link

@bigkevmcd bigkevmcd left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@kathleenfrench kathleenfrench force-pushed the kfrench/cel-eval-string branch 2 times, most recently from b6087da to 38d4153 Compare March 11, 2025 18:35
@matheuscscp
Copy link
Member

@kathleenfrench Please revert the quote change and squash into a single commit 🙏

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Signed-off-by: kathleen french <kfrench@groq.com>
@kathleenfrench kathleenfrench force-pushed the kfrench/cel-eval-string branch from 38d4153 to 567773d Compare March 11, 2025 18:45
@matheuscscp matheuscscp merged commit 84d0d45 into fluxcd:main Mar 11, 2025
12 checks passed
@matheuscscp
Copy link
Member

@kathleenfrench I pushed the tag runtime/v0.55.0 so you can bump fluxcd/pkg/runtime in notification-controller when implementing the commit status ID feature 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants