Add destination takeover config policy

This commit is contained in:
2026-06-18 15:05:09 +00:00
parent 3da7f931b2
commit c4e8ebff6f
5 changed files with 162 additions and 0 deletions

View File

@@ -47,6 +47,13 @@ const (
ReconciliationModeMerge = "merge"
)
const (
TakeoverModeSamePipeline = "same_pipeline"
TakeoverModeSameSource = "same_source"
TakeoverModeAnyManaged = "any_managed"
TakeoverModeNever = "never"
)
const (
StateModeSingleOwner = "single_owner"
StateModeSharedRoot = "shared_root"
@@ -95,6 +102,9 @@ func ApplyDefaults(cfg *Config) {
if destination.Reconciliation.Mode == "" {
destination.Reconciliation.Mode = ReconciliationModeReplace
}
if destination.Takeover.Mode == "" {
destination.Takeover.Mode = TakeoverModeSamePipeline
}
if destination.Transfer.OnDestinationSame == "" {
destination.Transfer.OnDestinationSame = TransferActionSkip
}