Kubernetes Webhook - Multiple hubs defined for group-kind

3/2/2022

Trying to deploy my webhook using operator-sdk I got this error in the logs:

conversion check failed	{"object": {"metadata":{"creationTimestamp":null},"spec":{},"status":{}}, "error": "multiple(2) hubs defined for group-kind '' "
-- Christian Altamirano Ayala
kubebuilder
kubernetes
operator-sdk

1 Answer

3/2/2022

According to kubebuilder documentation there must be only one hub Conversion and as many Spokes as versions your CRD has.

enter image description here

In my case there were 2 Hubs methods, so I just delete one of them.

-- Christian Altamirano Ayala
Source: StackOverflow