From f162b16ce56d4c56dd642dd3c4737de65816da2f Mon Sep 17 00:00:00 2001 From: Tharsanan1 Date: Fri, 12 Jan 2024 14:02:14 +0530 Subject: [PATCH] Change authentication version references --- adapter/internal/operator/controllers/dp/api_controller.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/adapter/internal/operator/controllers/dp/api_controller.go b/adapter/internal/operator/controllers/dp/api_controller.go index 066a8dc41..66824485e 100644 --- a/adapter/internal/operator/controllers/dp/api_controller.go +++ b/adapter/internal/operator/controllers/dp/api_controller.go @@ -153,7 +153,7 @@ func NewAPIController(mgr manager.Manager, operatorDataStore *synchronizer.Opera return err } - if err := c.Watch(source.Kind(mgr.GetCache(), &dpv1alpha1.Authentication{}), handler.EnqueueRequestsFromMapFunc(apiReconciler.populateAPIReconcileRequestsForAuthentication), + if err := c.Watch(source.Kind(mgr.GetCache(), &dpv1alpha2.Authentication{}), handler.EnqueueRequestsFromMapFunc(apiReconciler.populateAPIReconcileRequestsForAuthentication), predicates...); err != nil { loggers.LoggerAPKOperator.ErrorC(logging.PrintError(logging.Error2616, logging.BLOCKER, "Error watching Authentication resources: %v", err)) return err @@ -1014,8 +1014,8 @@ func (apiReconciler *APIReconciler) retriveParentAPIsAndUpdateOwnerReferene(ctx loggers.LoggerAPKOperator.Errorf("Object loaded successfully %+v", &apiPolicy) requests = apiReconciler.getAPIsForAPIPolicy(ctx, &apiPolicy) apiReconciler.handleOwnerReference(ctx, &apiPolicy, &requests) - case *dpv1alpha1.Authentication: - var auth dpv1alpha1.Authentication + case *dpv1alpha2.Authentication: + var auth dpv1alpha2.Authentication namesapcedName := types.NamespacedName{ Name: string(obj.GetName()), Namespace: string(obj.GetNamespace()),