Skip to content

Commit

Permalink
doc(NSC): add extra comments to setupHandlers call
Browse files Browse the repository at this point in the history
  • Loading branch information
aauren committed Jul 31, 2024
1 parent b217e7b commit 71072c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/controllers/proxy/network_services_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2115,6 +2115,11 @@ func NewNetworkServicesController(clientset kubernetes.Interface,
return nil, err
}

// This function is responsible for quite a bit:
// * Sets nsc.nodeIPv4Addrs & nsc.isIPv4Capable
// * Sets nsc.nodeIPv6Addr & nsc.isIPv6Capable
// * Creates the iptables handlers for ipv4 & ipv6
// * Creates the ipset handlers for ipv4 & ipv6
err = nsc.setupHandlers(config, node)
if err != nil {
return nil, err
Expand Down

0 comments on commit 71072c1

Please sign in to comment.