kube-linter
kube-linter copied to clipboard
Add native support for Kustomize
I'd like to see this too. In my case I run kube-linter across a directory that Flux applies to my cluster, and some of the subdirectories contain Kustomiziations. It would be nice if kube-linter detected those (e.g. by looking for kustomization.yaml
/ kustomization.yml
/ Kustomization
files) and ran those directories through the equivalent of kubectl kustomize
first.
Would really like to see this! Currently we run kustomize build
and feed the output to kubelinter, however we lose information on which file the findings are.
As a workaround, you could run kustomize build
yourself before running kube-linter
, and then skip any patch files using a filename pattern.