SetCluster updates the cached cluster for use outside the reconciliation cycle when the API client is not available
(cluster *apiv1.Cluster)
| 317 | // SetCluster updates the cached cluster for use outside the reconciliation |
| 318 | // cycle when the API client is not available |
| 319 | func (instance *Instance) SetCluster(cluster *apiv1.Cluster) { |
| 320 | instance.cluster.Store(cluster) |
| 321 | } |
| 322 | |
| 323 | // RequiresDesignatedPrimaryTransition checks if this instance is a primary |
| 324 | // that needs to become a designated primary in a replica cluster |
no outgoing calls
no test coverage detected