diff --git a/controllers/nodepool.go b/controllers/nodepool.go index 77bfb094..53f861ab 100644 --- a/controllers/nodepool.go +++ b/controllers/nodepool.go @@ -505,14 +505,16 @@ func (r *SFController) DeployNodepoolBuilder(statsdExporterVolume apiv1.Volume, r.CreateR(¤t) } + pvcReadiness := r.reconcileExpandPVC(builderIdent+"-"+builderIdent+"-0", r.cr.Spec.Nodepool.Builder.Storage) + routeReady := r.ensureHTTPSRoute(r.cr.Name+"-nodepool-builder", "nodepool", buildLogsHttpdPortName, "/builds", buildLogsHttpdPort, map[string]string{ "haproxy.router.openshift.io/rewrite-target": "/dib", }, r.cr.Spec.FQDN, r.cr.Spec.LetsEncrypt) - var isReady = r.IsStatefulSetReady(¤t) + var isReady = r.IsStatefulSetReady(¤t) && routeReady && pvcReadiness - conds.UpdateConditions(&r.cr.Status.Conditions, builderIdent, isReady && routeReady) + conds.UpdateConditions(&r.cr.Status.Conditions, builderIdent, isReady) return isReady }