We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a68541 commit a2284dcCopy full SHA for a2284dc
pkg/controller/chi/worker-reconciler-chi.go
@@ -162,13 +162,14 @@ func (w *worker) buildTemplates(chi *api.ClickHouseInstallation) (templates []*a
162
}
163
164
func (w *worker) findMinMaxVersions(ctx context.Context, chi *api.ClickHouseInstallation) {
165
+ if util.IsContextDone(ctx) {
166
+ return
167
+ }
168
// Create artifacts
169
chi.WalkHosts(func(host *api.Host) error {
170
w.stsReconciler.PrepareHostStatefulSetWithStatus(ctx, host, host.IsStopped())
- if !util.IsContextDone(ctx) {
- version := w.getHostSoftwareVersion(ctx, host)
- host.Runtime.Version = version
171
- }
+ version := w.getHostSoftwareVersion(ctx, host)
172
+ host.Runtime.Version = version
173
return nil
174
})
175
chi.FindMinMaxVersions()
0 commit comments