diff --git a/controllers/githubactionrunner_controller.go b/controllers/githubactionrunner_controller.go index 75b6a5e4..2a3ed65e 100644 --- a/controllers/githubactionrunner_controller.go +++ b/controllers/githubactionrunner_controller.go @@ -164,14 +164,6 @@ func (r *GithubActionRunnerReconciler) manageOutcome(ctx context.Context, instan // SetupWithManager configures the controller by using the passed mgr func (r *GithubActionRunnerReconciler) SetupWithManager(mgr ctrl.Manager) error { - // create an index for pod status since we filter on it - if err := mgr.GetFieldIndexer().IndexField(context.TODO(), &corev1.Pod{}, "status.phase", func(rawObj client.Object) []string { - pod := rawObj.(*corev1.Pod) - return []string{string(pod.Status.Phase)} - }); err != nil { - return err - } - return ctrl.NewControllerManagedBy(mgr). For(&garov1alpha1.GithubActionRunner{}). Owns(&corev1.Pod{}).