Skip to content

Commit

Permalink
Merge "nodepool-builder: support /var/lib/nodepool volume resize"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul CI authored and Gerrit Code Review committed Oct 18, 2023
2 parents a69dd08 + 8fe880e commit b149b3e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions controllers/nodepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,14 +505,16 @@ func (r *SFController) DeployNodepoolBuilder(statsdExporterVolume apiv1.Volume,
r.CreateR(&current)
}

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(&current)
var isReady = r.IsStatefulSetReady(&current) && routeReady && pvcReadiness

conds.UpdateConditions(&r.cr.Status.Conditions, builderIdent, isReady && routeReady)
conds.UpdateConditions(&r.cr.Status.Conditions, builderIdent, isReady)

return isReady
}
Expand Down

0 comments on commit b149b3e

Please sign in to comment.