From 8fe880e563fb34d09211089088ae7e0d82a6a230 Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Tue, 17 Oct 2023 15:00:20 +0000 Subject: [PATCH] nodepool-builder: support /var/lib/nodepool volume resize Change-Id: Ideb287b720eca12637f192fa2971a40199319313 --- controllers/nodepool.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 }