stackrox / kube-linter

KubeLinter is a static analysis tool that checks Kubernetes YAML files and Helm charts to ensure the applications represented in them adhere to best practices.
https://docs.kubelinter.io/
Apache License 2.0
2.89k stars 231 forks source link

feat: ignore templates in Chart dependencies based on ignore paths #667

Closed Trojan295 closed 7 months ago

Trojan295 commented 9 months ago

Solves #575

Trojan295 commented 9 months ago

@janisz I added a test.

I also saw that the ignorePaths are always passed to the CreateContexts in absolute path, while the args might be absolute or relative. You can see this creates a bug by comparing these commands, which yield a different result on main:

kube-linter lint $PWD/tests/testdata --ignore-paths $PWD/tests/testdata

kube-linter lint tests/testdata --ignore-paths $PWD/tests/testdata

The PR also addresses this.

janisz commented 7 months ago

Thank you! I'm sorry for a long delay.