Skip to content

Commit 2c4a3e5

Browse files
authored
Merge pull request #1634 from ozhuraki/nrt-owner-reference-fix
topology-updater: Set APIVersion, Kind in the OwnerReference explicitly
2 parents 0ad5e50 + 7bd27c7 commit 2c4a3e5

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)