Skip to content

Commit 1dd2949

Browse files
authored
fix: Removed the ctx from the baseNNC creation
1 parent 465846b commit 1dd2949

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
@@ -1306,7 +1306,7 @@ func InitializeCRDState(ctx context.Context, httpRestService cns.HTTPService, cn
13061306
nnc := v1alpha.NodeNetworkConfig{}
13071307
if cnsconfig.EnableHomeAz {
13081308
// Create Node Network Config CRD and update the Home Az field with the cache value from the HomeAz Monitor
1309-
nnc = createBaseNNC(ctx, node)
1309+
nnc = createBaseNNC(node)
13101310
}
13111311
directcli.Create(ctx, &nnc)
13121312

@@ -1520,7 +1520,7 @@ func InitializeCRDState(ctx context.Context, httpRestService cns.HTTPService, cn
15201520
return nil
15211521
}
15221522

1523-
func createBaseNNC(ctx context.Context, node *corev1.Node) v1alpha.NodeNetworkConfig {
1523+
func createBaseNNC(node *corev1.Node) v1alpha.NodeNetworkConfig {
15241524
return v1alpha.NodeNetworkConfig{ObjectMeta: metav1.ObjectMeta{
15251525
Annotations: make(map[string]string),
15261526
Labels: map[string]string{

0 commit comments

Comments
 (0)