Skip to content

Commit 24c8b0d

Browse files
tpantelisaswinsuryan
authored andcommitted
Remove TODO in .../kubeproxy/endpoint_handler.go
"Handle a remote endpoint removal use-case - remove related iptable rules" This is already handled by line: kp.updateIptableRulesForInterClusterTraffic(endpoint.Spec.Subnets, Delete) Signed-off-by: Tom Pantelis <[email protected]>
1 parent 1d57fdb commit 24c8b0d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/routeagent_driver/handlers/kubeproxy/endpoint_handler.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ func (kp *SyncHandler) RemoteEndpointRemoved(endpoint *submV1.Endpoint) error {
122122
kp.remoteSubnets.Delete(inputCidrBlock)
123123
delete(kp.remoteSubnetGw, inputCidrBlock)
124124
}
125-
// TODO: Handle a remote endpoint removal use-case
126-
// - remove related iptable rules
125+
127126
if err := kp.updateRoutingRulesForInterClusterSupport(endpoint.Spec.Subnets, Delete); err != nil {
128127
logger.Errorf(err, "updateRoutingRulesForInterClusterSupport for removed remote %#v returned error",
129128
endpoint)

0 commit comments

Comments
 (0)