-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KSM in v2.7.0
lead to some conflicts with the existing CustomResourceMetricConfiguration
#7832
Comments
@bavarianbidi: This issue is currently awaiting triage. If CAPI contributors determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I'd prefer to see the outcome of kubernetes/kube-state-metrics#1942 (I like the proposed approach) 👍 . Thanks for collecting all the information and bringing up this topic 🎉 |
+1 |
@bavarianbidi Nice work! As the PR has been merged, If I understood correctly with the next KSM release this issue would be resolved? |
Yes, the upcoming KSM release will solve the issue. |
Tested the existing
@sbueringer / @chrischdi feel free to close the issue |
🆗 , thanks a lot for investigating and addressing it on the kube-state-metrics side 👍 /close |
@chrischdi: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
+1 Thank you very much! |
What steps did you take and what happened:
As this PR has landed in
v2.7.0
ofkube-state-metrics
,for each custom resource metric, the labels
group
,version
andkind
are some kind of "reserved labels" and will be overwritten by the values from thegroupVersionKind
of the CR itself.from the
KSM
docs:Unfourtanetly this statement isn't true.
With the current implementation the
version
from the configuration (if one is defined) will overwrite theversion
from thegroupVersionKind
field.This lead to the behavior that e.g. the current config of the
capi_kubeadmcontrolplane_info
metricwill generate the following metric
group
andkind
are generated from the correspondingCR
andversion
gets overwritten by the configuration from above.The corresponding
capi_kubeadmcontrolplane_owner
configuration will lead toAs there is no explicit
version
label defined in the configuration, theversion
label will get generated from theCR
.What did you expect to happen:
We could either think about renaming
version
tokubernetes_version
or we wait until kubernetes/kube-state-metrics#1942 got accepted and merged.Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
kubectl version
):/etc/os-release
):/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]
The text was updated successfully, but these errors were encountered: