Add destination takeover config policy
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user