Skip to content

Commit

Permalink
devv: restore status from external storage
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsingerus committed Dec 13, 2024
1 parent 0eb7490 commit aa865f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/controller/chi/worker-chi-reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ 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 aa865f8

Please sign in to comment.