From 3960fa143e74e70c6f0bb2465f36d9482f954173 Mon Sep 17 00:00:00 2001 From: Eugene Fedorenko Date: Mon, 16 Dec 2024 11:39:37 -0800 Subject: [PATCH] Update controllers/schedulingpolicy_controller.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- controllers/schedulingpolicy_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/schedulingpolicy_controller.go b/controllers/schedulingpolicy_controller.go index b5a48eb..d45f187 100644 --- a/controllers/schedulingpolicy_controller.go +++ b/controllers/schedulingpolicy_controller.go @@ -101,7 +101,7 @@ func (r *SchedulingPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Req return r.manageFailure(ctx, reqLogger, schedulingPolicy, err, "Failed to list ClusterTypes") } - // fetch the list if deployment targets in the namespace with environment field equal to the namespace name + // fetch the list of deployment targets in the namespace with environment field equal to the namespace name deploymentTargets := &schedulerv1alpha1.DeploymentTargetList{} err = r.List(ctx, deploymentTargets, client.InNamespace(req.Namespace), client.MatchingFields{EnvironmentField: req.Namespace}) if err != nil {