Unverified Commit 21836a64 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #64202 from sttts/sttts-crds-removeDeadStorage-logging

Automatic merge from submit-queue (batch tested with PRs 64127, 63895, 64066, 64215, 64202). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. apiextensions: reduce verbose logs in removeDeadStorage We don't need one log line per version. Fixes https://github.com/kubernetes/kubernetes/pull/63830/files#r189808872, part of #64136.
parents aa3719d1 e341803d
...@@ -349,8 +349,8 @@ func (r *crdHandler) removeDeadStorage() { ...@@ -349,8 +349,8 @@ func (r *crdHandler) removeDeadStorage() {
} }
} }
if !found { if !found {
for version, storage := range s.storages { glog.V(4).Infof("Removing dead CRD storage for %s/%s", s.spec.Group, s.spec.Names.Kind)
glog.V(4).Infof("Removing dead CRD storage for %v", s.requestScopes[version].Resource) for _, storage := range s.storages {
// destroy only the main storage. Those for the subresources share cacher and etcd clients. // destroy only the main storage. Those for the subresources share cacher and etcd clients.
storage.CustomResource.DestroyFunc() storage.CustomResource.DestroyFunc()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment