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.82k stars 228 forks source link

[FEATURE_REQUEST] Need check for priorityClassName value #794

Open marcmognol opened 3 weeks ago

marcmognol commented 3 weeks ago

Description of the problem/feature request I would like to ensure that my Deployment and Daemonset has priorityClassName value defined.

Description of the existing behavior vs. expected behavior Current behavior: no error when a Deployment or Daemonset has no priorityClassName value. Expected behavior: kube-linter should throw an error when priorityClassName is not defined.

Additional context If this check is not requested enough by the community, is it possible to have a template which let me create a customCheck by myself.

The template could be take two parameters:

Thanks Marc