Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#11336 from Karthik-K-N/remove-clus…
Browse files Browse the repository at this point in the history
…tercache-check

🌱 Remove clustercache nil checks
  • Loading branch information
k8s-ci-robot authored Oct 25, 2024
2 parents e5cbc4a + 43f1ee5 commit 7957510
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions internal/controllers/machine/machine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1045,11 +1045,6 @@ func (r *Reconciler) watchClusterNodes(ctx context.Context, cluster *clusterv1.C
return nil
}

// If there is no tracker, don't watch remote nodes
if r.ClusterCache == nil {
return nil
}

return r.ClusterCache.Watch(ctx, util.ObjectKey(cluster), clustercache.WatchInput{
Name: "machine-watchNodes",
Watcher: r.controller,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -572,11 +572,6 @@ func (r *Reconciler) nodeToMachineHealthCheck(ctx context.Context, o client.Obje
}

func (r *Reconciler) watchClusterNodes(ctx context.Context, cluster *clusterv1.Cluster) error {
// If there is no tracker, don't watch remote nodes
if r.ClusterCache == nil {
return nil
}

return r.ClusterCache.Watch(ctx, util.ObjectKey(cluster), clustercache.WatchInput{
Name: "machinehealthcheck-watchClusterNodes",
Watcher: r.controller,
Expand Down

0 comments on commit 7957510

Please sign in to comment.