Skip to content

Commit 73dacc2

Browse files
authored
fix: Removed the ctx from the baseNNC creation
1 parent 170ecaf commit 73dacc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cns/service/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,7 @@ func InitializeCRDState(ctx context.Context, httpRestService cns.HTTPService, cn
13021302
nnc := v1alpha.NodeNetworkConfig{}
13031303
if cnsconfig.EnableHomeAz {
13041304
// Create Node Network Config CRD and update the Home Az field with the cache value from the HomeAz Monitor
1305-
nnc = createBaseNNC(ctx, node)
1305+
nnc = createBaseNNC(node)
13061306
}
13071307
directcli.Create(ctx, &nnc)
13081308

@@ -1516,7 +1516,7 @@ func InitializeCRDState(ctx context.Context, httpRestService cns.HTTPService, cn
15161516
return nil
15171517
}
15181518

1519-
func createBaseNNC(ctx context.Context, node *corev1.Node) v1alpha.NodeNetworkConfig {
1519+
func createBaseNNC(node *corev1.Node) v1alpha.NodeNetworkConfig {
15201520
return v1alpha.NodeNetworkConfig{ObjectMeta: metav1.ObjectMeta{
15211521
Annotations: make(map[string]string),
15221522
Labels: map[string]string{

0 commit comments

Comments
 (0)