CustomResourceStateMetrics didn't report the custom resource status data to metrics and kube-state-metrics crash if the custom resource property change #2141
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What happened:
There are 2 issues:
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
$k get vpa -A NAMESPACE NAME MODE CPU MEM PROVIDED AGE default test-vpa Auto 3s
$k get vpa -A NAMESPACE NAME MODE CPU MEM PROVIDED AGE default test-vpa Auto 12m 131072k True 15s
kube_customresource_verticalpodautoscaler_status_recommendation_containerrecommendations_target_memory{container="nginx1",customresource_group="autoscaling.k8s.io",customresource_kind="VerticalPodAutoscaler",customresource_version="v1",namespace="default",target_api_version="autoscaling.k8s.io/v1",target_kind="Deployment",target_name="nginx",verticalpodautoscaler="test-vpa"} 1.31072e+08
Anything else we need to know?:
Environment:
kubectl version
):The text was updated successfully, but these errors were encountered: