-
Hi everyone! Is it possible to use regexp in CEL Interceptors to filter events? For instance, can i use constructions like this:
|
Beta Was this translation helpful? Give feedback.
Answered by
dibyom
Oct 27, 2021
Replies: 1 comment 1 reply
-
Hi @pvlltvk sorry for the delay in responding. CEL supports regular expressions using the built in So, something like |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
pvlltvk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @pvlltvk sorry for the delay in responding. CEL supports regular expressions using the built in
matches
function.(See the
matches
function here: https://github.com/google/cel-spec/blob/master/doc/langdef.md#list-of-standard-definitions)So, something like
body.ref.matches('tekton/.*')
should work.