mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 04:32:37 +00:00
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:
@@ -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.
|
||||
},
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user