Open gmolau opened 2 months ago
I think it would be doable, but not exactly easy. Here is the function that does the fetching and comparison.
I'd suggest that you write a short proposal how this would look from the user's PoV. The expected yaml would likely go into an assert.yaml
file, but what about the command which produces the actual yaml?
Hi everyone, what do you think of making it possible to generate the expected yaml from a command? Currently there are two ways of writing the expected state:
My use case is a controller that installs Helm charts, where I would like to make assertions against the
helm status
output. Since that output does not live on a cluster I currently have to write a script like this:It would be much nicer if I could give a command that produces a yaml and an expected yaml, then rely on Kuttls internal machinery to compare the two. E.g. something like:
Do you think it would be possible to add something like this? And if so, what would be the best way to implement it?