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.
pull/8/head
Kubernetes Submit Queue 2018-05-24 10:45:31 -07:00 committed by GitHub
commit 21836a64ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -349,8 +349,8 @@ func (r *crdHandler) removeDeadStorage() {
}
}
if !found {
for version, storage := range s.storages {
glog.V(4).Infof("Removing dead CRD storage for %v", s.requestScopes[version].Resource)
glog.V(4).Infof("Removing dead CRD storage for %s/%s", s.spec.Group, s.spec.Names.Kind)
for _, storage := range s.storages {
// destroy only the main storage. Those for the subresources share cacher and etcd clients.
storage.CustomResource.DestroyFunc()
}