Closed sayan-biswas closed 1 year ago
Thank you for catching the issue @sayan-biswas. I'll look into that. /assign
Hello @alan-ghelardi, this issue has been open for quite some time. If you are not currently working on this issue, I would be happy to take over.
@avinal I haven't yet managed to start working on that directly. I started adding support for the has macro, which indirectly provides support for verifying whether a map contains a key, but haven't finished yet. If you want to look into this issue, I'd be glad to review the pull request.
Thanks Alan, I will start working on it then. /assign
Expected Behaviour
The API server shouldn't panic. If the CEL expression is not valid it should throw an error in the response instead.
Actual Behaviour
The server panics with the following error.
Steps to Reproduce the Problem
Using the CEL expression with ! (NOT) operator with group ()
Example:
!(data.metadata.annotations.contains('foo/bar'))