delete crd but not stop informer watch/list #84494
Labels
kind/bug
Categorizes issue or PR as related to a bug.
sig/api-machinery
Categorizes an issue or PR as relevant to SIG API Machinery.
What happened:
when i create a crd and delete it, the kubernetes controller logs stderr
reflector.go:123] k8s.io/client-go/metadata/metadatainformer/informer.go:89: Failed to list *v1.PartialObjectMetadata: the server could not find the requested resource
again and again.
If I delete more crd, the stderr will disturb me so I can't see other information.
What you expected to happen:
if i delete a crd, the informer watch/list will stop.
controller shouldn't print error.
How to reproduce it (as minimally and precisely as possible):
test.yaml
kubectl apply -f test.yaml
kubectl delete -f test.yaml
then, tail the controller logs in namespace kube-system, the stderr print(about 1/s)
Anything else we need to know?:
issue79610 is like this situation, but a little different.
how to solve it?
can i help with it?
Environment:
kubectl version
):cat /etc/os-release
):uname -a
):The text was updated successfully, but these errors were encountered: