Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion cmd/obol/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,22 @@ GLOBAL OPTIONS:{{template "visibleFlagTemplate" .}}{{end}}
},
},
Action: func(ctx context.Context, cmd *cli.Command) error {
return stack.Up(cfg, getUI(cmd), cmd.Bool("wildcard-dns"))
u := getUI(cmd)
if err := stack.Up(cfg, u, cmd.Bool("wildcard-dns")); err != nil {
return err
}
// Re-apply cluster-side state for locally-persisted
// `obol sell *` offers. ServiceOffer CRs and the
// Service/Endpoints that route to the host gateway
// live in etcd, which is destroyed by `obol stack
// down`, so a fresh `stack up` would otherwise come
// back with the descriptors still on disk but no
// matching cluster resources. Best-effort: a resume
// failure does not block stack-up.
if err := resumeSellOffers(ctx, cfg, u); err != nil {
u.Warnf("Could not resume sell offers: %v", err)
}
return nil
},
},
{
Expand Down
Loading
Loading