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.

Home Page:https://docs.kubelinter.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FEATURE_REQUEST] Additional linting for recommended labels

jawnsy opened this issue · comments

Description of the problem/feature request

Kubernetes and Helm recommend a set of labels on all objects. It would be nice if kube-linter identified missing labels like this.

Description of the existing behavior vs. expected behavior

Kube-Linter has some checks for labels, but does not seem to be checking for other recommended labels, like those in the app.kubernetes.io namespace.

Relevant links:

Additional context

If the labels include helm.sh/chart, then may want to consider enabling additional checks (e.g. that the labels match the recommendations from the Helm documentation). Otherwise, checking that the labels are non-empty is probably sufficient.