1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

Merge pull request #1634 from ozhuraki/nrt-owner-reference-fix

topology-updater: Set APIVersion, Kind in the OwnerReference explicitly
This commit is contained in:
Kubernetes Prow Robot 2024-03-20 12:45:41 -07:00 committed by GitHub
commit 2c4a3e5718
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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),
}, },