Skip to content

Commit

Permalink
dev: no need t place restore in reconciler
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsingerus committed Dec 15, 2024
1 parent 479ae03 commit f00ab73
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/controller/chi/worker-chi-reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ func (w *worker) reconcileCR(ctx context.Context, old, new *api.ClickHouseInstal
return nil
}

if new != nil {
n, err := w.c.kube.CR().Get(ctx, new.GetNamespace(), new.GetName())
if err != nil {
return err
}
new = n.(*api.ClickHouseInstallation)
}

w.a.M(new).S().P()
defer w.a.M(new).E().P()

Expand Down

0 comments on commit f00ab73

Please sign in to comment.