Open kumar-mallikarjuna opened 2 months ago
I totally agree with the rationale. Kuttl definitely needs more powerful assertion capabilities. Discussions on how to best express this never concluded. I actually like how chainsaw solved this, some of the things there don't really look like YAML any more 😆
Your suggestion looks functional, even if somewhat different from how assertions are currently expressed in kuttl.
I wonder if you could write up a really short KEP do describe this and announce on the slack channel, to give others a chance to comment?
Personally I'd just maybe use id
instead of identifier
and put this into TestAssert
rather than TestStep
.
I have plan to support CEL in chainsaw, didn't have time to work on it yet though :(
Sure, will do, @porridge .
What would you like to be added: A Common Expression Language (CEL) based assertion semantic.
Reference: https://github.com/google/cel-spec
Why is this needed:
Currently, Kuttl lacks support for complex data manipulation in assertions. Here are a few examples where this limitation is apparent:
n
Pods.These issues could be resolved by incorporating a CEL engine into Kuttl, allowing for expression evaluation and more flexible assertions.
How would this look like syntactically:
Edit: Incorporate the comments from @porridge .