Skip to content

Commit

Permalink
Merge pull request #1634 from ozhuraki/nrt-owner-reference-fix
Browse files Browse the repository at this point in the history
topology-updater: Set APIVersion, Kind in the OwnerReference explicitly
  • Loading branch information
k8s-ci-robot authored Mar 20, 2024
2 parents 0ad5e50 + 7bd27c7 commit 2c4a3e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/nfd-topology-updater/nfd-topology-updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ func (w *nfdTopologyUpdater) updateNodeResourceTopology(zoneInfo v1alpha2.ZoneLi
} else {
w.ownerRefs = []metav1.OwnerReference{
{
APIVersion: ns.APIVersion,
Kind: ns.Kind,
APIVersion: "v1",
Kind: "Namespace",
Name: ns.Name,
UID: types.UID(ns.UID),
},
Expand Down

0 comments on commit 2c4a3e5

Please sign in to comment.