Kubernetes Webhook - Multiple hubs defined for group-kind

101 Views Asked by At

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 '' "
1

There are 1 best solutions below

0
On BEST ANSWER

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.