Skip to content

Commit a2284dc

Browse files
committed
dev: allow sw version
1 parent 3a68541 commit a2284dc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pkg/controller/chi/worker-reconciler-chi.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,14 @@ func (w *worker) buildTemplates(chi *api.ClickHouseInstallation) (templates []*a
162162
}
163163

164164
func (w *worker) findMinMaxVersions(ctx context.Context, chi *api.ClickHouseInstallation) {
165+
if util.IsContextDone(ctx) {
166+
return
167+
}
165168
// Create artifacts
166169
chi.WalkHosts(func(host *api.Host) error {
167170
w.stsReconciler.PrepareHostStatefulSetWithStatus(ctx, host, host.IsStopped())
168-
if !util.IsContextDone(ctx) {
169-
version := w.getHostSoftwareVersion(ctx, host)
170-
host.Runtime.Version = version
171-
}
171+
version := w.getHostSoftwareVersion(ctx, host)
172+
host.Runtime.Version = version
172173
return nil
173174
})
174175
chi.FindMinMaxVersions()

0 commit comments

Comments
 (0)