diff --git a/api/v1/eventhub_types.go b/api/v1/eventhub_types.go index 9b6f071a43c..b3bdfb850ad 100644 --- a/api/v1/eventhub_types.go +++ b/api/v1/eventhub_types.go @@ -72,6 +72,7 @@ type EventhubProperties struct { } // +kubebuilder:object:root=true +// +kubebuilder:subresource:status // Eventhub is the Schema for the eventhubs API type Eventhub struct { metav1.TypeMeta `json:",inline"` diff --git a/config/crd/bases/azure.microsoft.com_eventhubs.yaml b/config/crd/bases/azure.microsoft.com_eventhubs.yaml index 76c5fd857ec..f881df6e68a 100644 --- a/config/crd/bases/azure.microsoft.com_eventhubs.yaml +++ b/config/crd/bases/azure.microsoft.com_eventhubs.yaml @@ -11,6 +11,8 @@ spec: kind: Eventhub plural: eventhubs scope: "" + subresources: + status: {} validation: openAPIV3Schema: description: Eventhub is the Schema for the eventhubs API diff --git a/main.go b/main.go index 1ed35c2930f..d899844d772 100644 --- a/main.go +++ b/main.go @@ -118,6 +118,7 @@ func main() { setupLog.Error(err, "unable to create webhook", "webhook", "EventhubNamespace") os.Exit(1) } + err = (&controllers.ConsumerGroupReconciler{ Client: mgr.GetClient(), Log: ctrl.Log.WithName("controllers").WithName("ConsumerGroup"),