Skip to content

Commit 45e37e2

Browse files
committed
dev: workaround for ch Feb-4 failure
1 parent 3cb454f commit 45e37e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

+5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import (
3232
"github.com/altinity/clickhouse-operator/pkg/model/chi/config"
3333
"github.com/altinity/clickhouse-operator/pkg/model/common/action_plan"
3434
"github.com/altinity/clickhouse-operator/pkg/util"
35+
core "k8s.io/api/core/v1"
3536
)
3637

3738
// reconcileCR runs reconcile cycle for a Custom Resource
@@ -329,6 +330,10 @@ func (w *worker) reconcileHostStatefulSet(ctx context.Context, host *api.Host, o
329330

330331
// We are in place, where we can reconcile StatefulSet to desired configuration.
331332
w.a.V(1).M(host).F().Info("Reconcile host: %s. Reconcile StatefulSet", host.GetName())
333+
host.GetCR().GetRuntime().GetAttributes().AppendAdditionalEnvVarIfNotExists(core.EnvVar{
334+
Name: "CLICKHOUSE_SKIP_USER_SETUP",
335+
Value: "1",
336+
})
332337
w.stsReconciler.PrepareHostStatefulSetWithStatus(ctx, host, false)
333338
err := w.stsReconciler.ReconcileStatefulSet(ctx, host, true, opts)
334339
if err == nil {

0 commit comments

Comments
 (0)