🌐
GVK を動的に取得する
gvk, _ := apiutil.GVKForObject(runtimeObject, scheme)
ref := metav1.OwnerReference{
APIVersion: gvk.GroupVersion().String(),
Kind: gvk.Kind,
}
gvk, _ := apiutil.GVKForObject(runtimeObject, scheme)
ref := metav1.OwnerReference{
APIVersion: gvk.GroupVersion().String(),
Kind: gvk.Kind,
}
Discussion