Skip to content

Commit

Permalink
dev: workaround for ch Feb-4 failure
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsingerus committed Feb 6, 2025
1 parent 3cb454f commit 45e37e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/controller/chi/worker-reconciler-chi.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
"github.com/altinity/clickhouse-operator/pkg/model/chi/config"
"github.com/altinity/clickhouse-operator/pkg/model/common/action_plan"
"github.com/altinity/clickhouse-operator/pkg/util"
core "k8s.io/api/core/v1"
)

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

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

0 comments on commit 45e37e2

Please sign in to comment.