Expose takeover actions in run output

This commit is contained in:
2026-06-18 15:35:06 +00:00
parent 11d1eabe2a
commit eba65018be
18 changed files with 141 additions and 54 deletions

View File

@@ -62,6 +62,7 @@ type Plan struct {
StateMode string
OwnerScope state.OwnerScope
Reconciliation config.ReconciliationPolicy
TakeoverMode string
Outputs []Output
ExistingState *state.DistributorState
ExistingSharedRoot *state.SharedRootState
@@ -121,6 +122,7 @@ func Build(ctx context.Context, req Request) (Plan, error) {
StateMode: stateMode,
OwnerScope: state.CurrentOwnerScope(req.PipelineID, req.DestinationID),
Reconciliation: reconciliation,
TakeoverMode: normalizeTakeover(req.Takeover).Mode,
Outputs: outputs,
ExistingState: status.State,
ExistingSharedRoot: status.SharedRoot,