mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-18 22:33:09 +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 {
|
} else {
|
||||||
w.ownerRefs = []metav1.OwnerReference{
|
w.ownerRefs = []metav1.OwnerReference{
|
||||||
{
|
{
|
||||||
APIVersion: ns.APIVersion,
|
APIVersion: "v1",
|
||||||
Kind: ns.Kind,
|
Kind: "Namespace",
|
||||||
Name: ns.Name,
|
Name: ns.Name,
|
||||||
UID: types.UID(ns.UID),
|
UID: types.UID(ns.UID),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue