Merge pull request #35138 from MrHohn/kubedns-comment

Automatic merge from submit-queue

Add comment for why EndpointsStore doesn't have DeleteFunc

I was confused about why EndpointsStore does not need to have the DeleteFunc. I think it would be helpful to have a comment here.

@bprashanth @bowei
This commit is contained in:
Kubernetes Submit Queue 2016-10-20 02:10:44 -07:00 committed by GitHub
commit 2d12c9ffca

View File

@ -225,6 +225,8 @@ func (kd *KubeDNS) setEndpointsStore() {
// TODO: Avoid unwanted updates.
kd.handleEndpointAdd(newObj)
},
// No DeleteFunc for EndpointsStore because endpoint object will be deleted
// when corresponding service is deleted.
},
)
}