Skip to content

Commit 6385042

Browse files
fix: use comments suitable for documentation
Co-authored-by: Timothy J. Raymond <[email protected]> Signed-off-by: Santhosh Prabhu <[email protected]>
1 parent b3ac582 commit 6385042

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cns/restserver/nodesubnet.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ func (service *HTTPRestService) UpdateIPsForNodeSubnet(secondaryIPs []netip.Addr
3434
return nil
3535
}
3636

37-
// initialization steps for nodesubnet:
38-
// 1. Set orchestrator type to KubernetesCRD
39-
// 2. Reconcile initial CNS state from statefile
40-
// 3. Create the IP fetcher
37+
// InitializeNodeSubnet prepares CNS for serving NodeSubnet requests.
38+
// It sets the orchestrator type to KubernetesCRD, reconciles the initial
39+
// CNS state from the statefile, then creates an IP fetcher.
4140
func (service *HTTPRestService) InitializeNodeSubnet(ctx context.Context, podInfoByIPProvider cns.PodInfoByIPProvider) error {
4241
// set orchestrator type
4342
orchestrator := cns.SetOrchestratorTypeRequest{

0 commit comments

Comments
 (0)