Description
Problem Statement
Hello
I like how this project allows to test the manifests and the approach that you took (thanks for it!) and I'm wondering if support for helm charts would be a feature that you could implement.
Usually you don't want to test every single line of a helm output but just the most relevant parts, so the option of testing the whole helm output isn't worth and being able to apply helms as part of test installation would be nice to test in a single shoot that helm chart works on a given k8s cluster version and the output is the expected.
I've checked docs and I've not found anything similar, so currently I'm deploying the helm chart by myself and then just using chainsaw to verify the files, but merging both actions would be awesome. Currently I'm doing something like:
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
name: http-route
spec:
steps:
- try:
- script:
content: helm upgrade --install e2e-test-helm ./../. --wait -f case-values.yaml
- assert:
file: assert.yaml
- cleanup:
- script:
content: helm uninstall e2e-test-helm
So, every single case that I want to cover requires a target in my Makefile, not just single test files.
Solution Description
I'd like to have an option to configure a helm deploy as part of test installation, something like helm-upgrade
that I can use like script
or apply
Alternatives
Currently, this can be achieved using script
and it works nice, but script
doesn't support templating, and the templating can be super useful to configure the case
Additional Context
No response
Slack discussion
No response
Research
- I have searched other issues in this repository and mine is not recorded.