mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-18 14:01:17 +02:00
get rid of arrays in the kuberesources;
use shorter form of checking for errors
This commit is contained in:
+3
-5
@@ -137,16 +137,14 @@ func (c *Cluster) waitPodLabelsReady() error {
|
||||
})
|
||||
}
|
||||
|
||||
func (c *Cluster) waitClusterReady() error {
|
||||
func (c *Cluster) waitStatefulsetPodsReady() error {
|
||||
// TODO: wait for the first Pod only
|
||||
err := c.waitStatefulsetReady()
|
||||
if err != nil {
|
||||
if err := c.waitStatefulsetReady(); err != nil {
|
||||
return fmt.Errorf("Statuful set error: %s", err)
|
||||
}
|
||||
|
||||
// TODO: wait only for master
|
||||
err = c.waitPodLabelsReady()
|
||||
if err != nil {
|
||||
if err := c.waitPodLabelsReady(); err != nil {
|
||||
return fmt.Errorf("Pod labels error: %s", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user