zegl / kube-score

Kubernetes object analysis with recommendations for improved reliability and security. kube-score actively prevents downtime and bugs in your Kubernetes YAML and Charts. Static code analysis for Kubernetes.
https://kube-score.com
MIT License
2.74k stars 176 forks source link

Feature Request: add test name to error for easier ignore #372

Open devopsmash opened 3 years ago

devopsmash commented 3 years ago

currently in order to get the test name in order to ignore it you need to run kube-score list and then to detect the right test

It will be awesome to have also the test name next to the error

Suggestion:

apps/v1/Deployment appclient                                                  💥
    [CRITICAL] Deployment targeted by HPA does not have replicas configured (deployment-targeted-by-hpa-does-not-have-replicas-configured)
        · The deployment is targeted by a HPA, but a static replica count is configured in the DeploymentSpec
            When replicas is both statically set and managed by the HPA, the
            replicas will be changed to the statically configured count when the
            spec is applied, even if the HPA wants the replica count to be
            higher.