mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-03 04:41:51 +02:00
Extend diagnostic api with worker status info
This commit is contained in:
@@ -29,9 +29,9 @@ func (c *Controller) makeClusterConfig() cluster.Config {
|
||||
}
|
||||
|
||||
func (c *Controller) clusterWorkerID(clusterName spec.NamespacedName) uint32 {
|
||||
workerId, ok := c.clusterWorkers[clusterName]
|
||||
workerID, ok := c.clusterWorkers[clusterName]
|
||||
if ok {
|
||||
return workerId
|
||||
return workerID
|
||||
}
|
||||
|
||||
c.clusterWorkers[clusterName] = c.curWorkerID
|
||||
|
||||
Reference in New Issue
Block a user