Skip to content

Commit

Permalink
Adopt breaking change of Kubernetes PR 116218
Browse files Browse the repository at this point in the history
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
  • Loading branch information
RainbowMango committed Jul 24, 2023
1 parent 28793d7 commit 9977684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/status/cluster_status_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func (c *ClusterStatusController) initLeaseController(cluster *clusterv1alpha1.C
klog.Infof("Starting syncing lease for cluster: %s", cluster.Name)

// lease controller will keep running until the stop channel is closed(context is canceled)
clusterLeaseController.Run(ctx.Done())
clusterLeaseController.Run(ctx)

klog.Infof("Stop syncing lease for cluster: %s", cluster.Name)
c.ClusterLeaseControllers.Delete(cluster.Name) // ensure the cache is clean
Expand Down

0 comments on commit 9977684

Please sign in to comment.