Skip to content

Commit

Permalink
Update controllers/schedulingpolicy_controller.go
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
  • Loading branch information
eedorenko and Copilot authored Dec 16, 2024
1 parent 1052c15 commit 3960fa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/schedulingpolicy_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3960fa1

Please # to comment.