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.
I'm using the kube-score to check my k8s objects/resources and it will be awesome if you can present the error even if I ignored that test but still exit without error.
Example without ignore
helm template mychart . | kube-score score
# output
apps/v1/Deployment appclient ๐ฅ
[CRITICAL] 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.
autoscaling/v2beta2/HorizontalPodAutoscaler appclient โ
networking.k8s.io/v1beta1/Ingress appclient โ
v1/Service appclient โ
# exit 1
helm template mychart . | kube-score score --show-ignored-test-error --ignore-test deployment-targeted-by-hpa-does-not-have-replicas-configured
# output:
apps/v1/Deployment appclient ๐ฅ
[CRITICAL] 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.
autoscaling/v2beta2/HorizontalPodAutoscaler appclient โ
networking.k8s.io/v1beta1/Ingress appclient โ
v1/Service appclient โ
# exit 0
Hi!
I'm using the
kube-score
to check my k8s objects/resources and it will be awesome if you can present the error even if I ignored that test but still exit without error.Example without ignore
with ignore
suggestion
--show-ignored-test-error
:Thank you for your great work!