Skip to content

Commit

Permalink
Change authentication version references
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharsanan1 committed Jan 16, 2024
1 parent 8a07529 commit f162b16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions adapter/internal/operator/controllers/dp/api_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()),
Expand Down

0 comments on commit f162b16

Please sign in to comment.