Closed m-messiah closed 2 years ago
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: christopherhein, m-messiah
The full list of commands accepted by this bot can be found here.
The pull request process is described here
What this PR does / why we need it:
c.MultiClusterController.GetCluster
method returns a pointer, but nil check was not done, so sometimes we could see the panic in logs, resulting syncer to be restarted or completely broken in that loop.The PR just adds a non-nil check for the object as it is already done in other invocations of the method