Skip to content

Commit 7bd27c7

Browse files
committed
topology-updater: Set APIVersion, Kind in the OwnerReference explicitly
APIVersion and Kind are empty in the returned namespace object and need to be set explicitly. Signed-off-by: Oleg Zhurakivskyy <[email protected]>
1 parent 0ad5e50 commit 7bd27c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/nfd-topology-updater/nfd-topology-updater.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ func (w *nfdTopologyUpdater) updateNodeResourceTopology(zoneInfo v1alpha2.ZoneLi
237237
} else {
238238
w.ownerRefs = []metav1.OwnerReference{
239239
{
240-
APIVersion: ns.APIVersion,
241-
Kind: ns.Kind,
240+
APIVersion: "v1",
241+
Kind: "Namespace",
242242
Name: ns.Name,
243243
UID: types.UID(ns.UID),
244244
},

0 commit comments

Comments
 (0)