From 1052c156e7f9f223e83754764c0c6026c41ad121 Mon Sep 17 00:00:00 2001 From: Eugene Fedorenko Date: Mon, 16 Dec 2024 11:38:01 -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 9a26eca..b5a48eb 100644 --- a/controllers/schedulingpolicy_controller.go +++ b/controllers/schedulingpolicy_controller.go @@ -268,7 +268,7 @@ func (r *SchedulingPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error { return err } - // Add the field index for the environmrnt in the deployment target + // Add the field index for the environment in the deployment target if err := mgr.GetFieldIndexer().IndexField(context.Background(), &schedulerv1alpha1.DeploymentTarget{}, EnvironmentField, func(rawObj client.Object) []string { return []string{rawObj.(*schedulerv1alpha1.DeploymentTarget).Spec.Environment} }); err != nil {