Skip to content

Commit c6be5ae

Browse files
committed
Remove watch for ZenExtensions
Signed-off-by: Rob Hundley <[email protected]>
1 parent dce98f4 commit c6be5ae

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

internal/controller/operator/authentication_controller.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ import (
5050
"sigs.k8s.io/controller-runtime/pkg/reconcile"
5151

5252
operatorv1alpha1 "github.com/IBM/ibm-iam-operator/api/operator/v1alpha1"
53-
zenv1 "github.com/IBM/ibm-iam-operator/internal/api/zen.cpd.ibm.com/v1"
5453
"github.com/opdev/subreconciler"
5554
logf "sigs.k8s.io/controller-runtime/pkg/log"
5655
)
@@ -385,9 +384,6 @@ func (r *AuthenticationReconciler) SetupWithManager(mgr ctrl.Manager) error {
385384
if ctrlcommon.ClusterHasOpenShiftConfigGroupVerison(&r.DiscoveryClient) {
386385
authCtrl.Watches(&routev1.Route{}, handler.EnqueueRequestForOwner(mgr.GetScheme(), mgr.GetRESTMapper(), &operatorv1alpha1.Authentication{}, handler.OnlyControllerOwner()))
387386
}
388-
if ctrlcommon.ClusterHasZenExtensionGroupVersion(&r.DiscoveryClient) {
389-
authCtrl.Watches(&zenv1.ZenExtension{}, handler.EnqueueRequestForOwner(mgr.GetScheme(), mgr.GetRESTMapper(), &operatorv1alpha1.Authentication{}, handler.OnlyControllerOwner()))
390-
}
391387
if ctrlcommon.ClusterHasOperandRequestAPIResource(&r.DiscoveryClient) {
392388
authCtrl.Watches(&operatorv1alpha1.OperandRequest{}, handler.EnqueueRequestForOwner(mgr.GetScheme(), mgr.GetRESTMapper(), &operatorv1alpha1.Authentication{}, handler.OnlyControllerOwner()))
393389
}

0 commit comments

Comments
 (0)