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
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
with ignore
helm template mychart . | kube-score score --ignore-test deployment-targeted-by-hpa-does-not-have-replicas-configured
# output:
apps/v1/Deployment appclient β
autoscaling/v2beta2/HorizontalPodAutoscaler appclient β
networking.k8s.io/v1beta1/Ingress appclient β
v1/Service appclient β
# exit 0
suggestion --show-ignored-test-error
:
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
Thank you for your great work!
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too