Open josegomezr opened 9 months ago
This would be of great benefit to us as well.
It would also be good to be able to set the Release Name and Release Namespace to something specific, as those can also be used in helm charts as part of feature gates, rather than having them hardcoded in https://github.com/stackrox/kube-linter/blob/d028f4efa58ce1d1fa7ab5d7c79abf1126a35be0/pkg/lintcontext/parse_yaml.go#L113
For what is worth @meganwalker-ibm we kinda worked it around by using helm template [all helm flags] | kube-linter [all linter flags]
Description of the problem/feature request Allow
kube-linter
to receive an arbitrary amount ofvalues.yaml
files (just likehelm upgrade
does) when checking a helm chart.Description of the existing behavior vs. expected behavior
We deploy several "variations" of the same workload across environments, and those variations we control via
values.yaml
.We have a baseline behavior (no added values), and then with
--values %the-file%.yml
we enable/disable extra features for that environment.We'd like to catch potential errors on the chart when using those special files too.
Additional context
Something like:
And that would load the default
values.yaml
inside thehelm-chart
directory as well as merging the values defined incustom.yaml
on top of the aforementioned.I'm open to contribute this change!