From ae5378b9f8a9041cf8bd050792cf9ca393700bbc Mon Sep 17 00:00:00 2001 From: Tharsanan1 Date: Tue, 8 Oct 2024 16:26:31 +0530 Subject: [PATCH] Fix api key secret not reconciling relevant APIs --- adapter/internal/operator/controllers/dp/api_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapter/internal/operator/controllers/dp/api_controller.go b/adapter/internal/operator/controllers/dp/api_controller.go index 140d23cf2..883437592 100644 --- a/adapter/internal/operator/controllers/dp/api_controller.go +++ b/adapter/internal/operator/controllers/dp/api_controller.go @@ -1611,7 +1611,7 @@ func (apiReconciler *APIReconciler) getAPIsForSecret(ctx context.Context, obj k8 return []reconcile.Request{} } - backendList := &dpv1alpha1.BackendList{} + backendList := &dpv1alpha2.BackendList{} if err := apiReconciler.client.List(ctx, backendList, &k8client.ListOptions{ FieldSelector: fields.OneTermEqualSelector(secretBackend, utils.NamespacedName(secret).String()), }); err != nil {