I want to update a
k8s crd object via go k8s sdk code,the problem is that when I do it I got an error that the object have different owner reference, so I tried with the following (adding the OwnerReferences object) without success, any idea what else I should try?
objectMeta: v1.ObjectMeta{
Labels: map[string]string{},
Name: "vectoad",
Namespace: "gateys",
OwnerReferences: []v1.OwnerReference{
{
APIVersion: "v1",
Kind: "vts",
Name: "gcay/dev-geay",
UID: "1",
},
},
},