kubernetesoperator-sdkkubebuilder

Kubernetes Webhook - Multiple hubs defined for group-kind


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

Solution

  • 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.