From 594c5cda76b5e06d2db8df9642dd71164b65ff84 Mon Sep 17 00:00:00 2001 From: priyakumarank <51063856+priyakumarank@users.noreply.github.com> Date: Mon, 26 Aug 2019 15:45:31 +1000 Subject: [PATCH] fix tests (#140) * revert back // +kubebuilder:subresource:status changes - fix broken tests --- api/v1/eventhub_types.go | 1 - config/crd/bases/azure.microsoft.com_eventhubs.yaml | 2 -- main.go | 1 - 3 files changed, 4 deletions(-) diff --git a/api/v1/eventhub_types.go b/api/v1/eventhub_types.go index b3bdfb850ad..9b6f071a43c 100644 --- a/api/v1/eventhub_types.go +++ b/api/v1/eventhub_types.go @@ -72,7 +72,6 @@ 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 f881df6e68a..76c5fd857ec 100644 --- a/config/crd/bases/azure.microsoft.com_eventhubs.yaml +++ b/config/crd/bases/azure.microsoft.com_eventhubs.yaml @@ -11,8 +11,6 @@ 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 d899844d772..1ed35c2930f 100644 --- a/main.go +++ b/main.go @@ -118,7 +118,6 @@ 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"),