Skip to content

Commit cfb62b3

Browse files
committed
Expect nodeSlicePool's Owner NAD to be exist in its own namespace
Signed-off-by: Lubron Zhan <[email protected]>
1 parent db4e172 commit cfb62b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/node-controller/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ func (c *Controller) syncHandler(ctx context.Context, key string) error {
367367
},
368368
ObjectMeta: metav1.ObjectMeta{
369369
Name: getSliceName(ipamConf),
370-
Namespace: c.whereaboutsNamespace,
370+
Namespace: namespace,
371371
OwnerReferences: []metav1.OwnerReference{
372372
*metav1.NewControllerRef(nad, cncfV1.SchemeGroupVersion.WithKind("NetworkAttachmentDefinition")),
373373
},

0 commit comments

Comments
 (0)