mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
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 <oleg.zhurakivskyy@intel.com>
This commit is contained in:
parent
0ad5e50f24
commit
7bd27c757a
1 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue