🌐

GVK を動的に取得する

2020/09/18に公開
gvk, _ := apiutil.GVKForObject(runtimeObject, scheme)
ref := metav1.OwnerReference{
				APIVersion: gvk.GroupVersion().String(),
				Kind:       gvk.Kind,
}

Discussion