-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Crash when deleting CRD #2205
Comments
QQ: have you enabled custom state resource metrics feature? |
Ah, we have, however it's with the following settings
As nothing's been templated for it here And also, apologies, I didn't check the logs far enough back before, with this it also logs the following regularly too
Which I'm assuming is related So I guess this is either invalid config or an empty spec could be seen as a no-op? |
Since you are not using CustomResourceStateMetrics feature |
Yes, have updated our templating to not include the Can confirm this resolves the log messages and KSM is once again unaffected by CRD changes |
Okay. Discussed with @logicalhan yesterday around moving CustomResourceStateMetrics feature out of KSM repo. This issue is one datapoint which supports this idea. |
/triage accepted |
This issue has not been updated in over 1 year, and should be re-triaged. You can:
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/ /remove-triage accepted |
@CatherineF-dev @rexagod do you perhaps know if this is still relevant? IIRC for fix something around that. /triage accepted |
/close I tried to reproduce it with the config mentioned above, to no effect. |
@rexagod: 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-sigs/prow repository. |
What happened:
kube-state-metrics crashed after a CRD was deleted
What you expected to happen:
to handle the deletion
How to reproduce it (as minimally and precisely as possible):
Delete a CRD such that a
cache.DeletedFinalStateUnknown
is returnedpossibly between intervals?
Anything else we need to know?:
Here's a link to the client doc for this type
https://pkg.go.dev/k8s.io/client-go/tools/cache#DeletedFinalStateUnknown
Environment:
kubectl version
): v1.27.4Error log:
The text was updated successfully, but these errors were encountered: