Skip to content

Commit

Permalink
drop obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkarlsen committed Jan 1, 2021
1 parent d0fbbaa commit 4eee3b4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions controllers/githubactionrunner_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}).
Expand Down

0 comments on commit 4eee3b4

Please sign in to comment.