do not sleep
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
This commit is contained in:
parent
53536d56db
commit
223d464e45
|
@ -2,7 +2,6 @@ package controllers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"time"
|
|
||||||
|
|
||||||
appsv1 "k8s.io/api/apps/v1"
|
appsv1 "k8s.io/api/apps/v1"
|
||||||
"k8s.io/apimachinery/pkg/api/errors"
|
"k8s.io/apimachinery/pkg/api/errors"
|
||||||
|
@ -54,9 +53,8 @@ func (r *SeaweedReconciler) ensureMasterStatefulSet(seaweedCR *seaweedv1.Seaweed
|
||||||
log.Error(err, "Failed to create master statefulset", "Namespace", dep.Namespace, "Name", dep.Name)
|
log.Error(err, "Failed to create master statefulset", "Namespace", dep.Namespace, "Name", dep.Name)
|
||||||
return ReconcileResult(err)
|
return ReconcileResult(err)
|
||||||
}
|
}
|
||||||
// sleep 60 seconds for DNS to have pod IP addresses ready
|
|
||||||
time.Sleep(time.Minute)
|
// StatefulSet created successfully - return and requeue
|
||||||
// Deployment created successfully - return and requeue
|
|
||||||
return ReconcileResult(err)
|
return ReconcileResult(err)
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
log.Error(err, "Failed to get Deployment")
|
log.Error(err, "Failed to get Deployment")
|
||||||
|
|
Loading…
Reference in New Issue