mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-18 04:50:03 +02:00
bump dependencies and reflect linter suggestions (#2963)
This commit is contained in:
+3
-2
@@ -432,9 +432,10 @@ func (c *Cluster) recreatePods(pods []v1.Pod, switchoverCandidates []spec.Namesp
|
||||
}
|
||||
|
||||
newRole := PostgresRole(newPod.Labels[c.OpConfig.PodRoleLabel])
|
||||
if newRole == Replica {
|
||||
switch newRole {
|
||||
case Replica:
|
||||
replicas = append(replicas, util.NameFromMeta(pod.ObjectMeta))
|
||||
} else if newRole == Master {
|
||||
case Master:
|
||||
newMasterPod = newPod
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user