Skip to content

runtime/cel: introduce string assertion helper - #1317

Merged
matheuscscp merged 1 commit into
mainfrom
cel-string-assertion
Oct 11, 2026
Merged

matheuscscp merged 1 commit into
mainfrom
cel-string-assertion

Conversation

@matheuscscp

Copy link
Copy Markdown
Member

Creating a facility to make it easy to make an assertion about a single string (i.e. return a boolean property), the CEL equivalent of a regex (regex is a subset supported by these CEL expressions). You just pass the string symbol e.g. ns or value like in fluxcd/source-watcher#392 and the expression string itself, and get a built *Expression for asserting any amount of string inputs.

Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
@matheuscscp
matheuscscp requested a review from a team as a code owner October 11, 2026 17:19
@matheuscscp matheuscscp added enhancement New feature or request area/runtime Controller runtime related issues and pull requests labels Oct 11, 2026

@stefanprodan stefanprodan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@matheuscscp
matheuscscp merged commit 6a0e312 into main Oct 11, 2026
16 checks passed
@matheuscscp
matheuscscp deleted the cel-string-assertion branch October 11, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/runtime Controller runtime related issues and pull requests enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants