kube-linter icon indicating copy to clipboard operation
kube-linter copied to clipboard

Add native support for Kustomize

Open viswajithiii opened this issue 3 years ago • 3 comments

viswajithiii avatar Dec 22 '20 20:12 viswajithiii

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.

bootc avatar Jun 05 '21 11:06 bootc

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.

Symbianx avatar Nov 12 '21 11:11 Symbianx

As a workaround, you could run kustomize build yourself before running kube-linter, and then skip any patch files using a filename pattern.

bio-boris avatar Jul 13 '22 19:07 bio-boris