mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
[Bugfix] Always stop Sync if disabled (#1130)
This commit is contained in:
parent
d7e7ad77c4
commit
7949a7c3ae
2 changed files with 8 additions and 2 deletions
|
@ -8,6 +8,7 @@
|
|||
- (Bugfix) Prevent LifeCycle restarts
|
||||
- (Bugfix) Change SyncWorker Affinity to Soft
|
||||
- (Feature) Add HostAliases for Sync
|
||||
- (Bugfix) Always stop Sync if disabled
|
||||
|
||||
## [1.2.17](https://github.com/arangodb/kube-arangodb/tree/1.2.17) (2022-09-22)
|
||||
- (Feature) Add new field to DeploymentReplicationStatus with details on DC2DC sync status=
|
||||
|
|
|
@ -63,8 +63,13 @@ func (r *Reconciler) createScaleMemberPlan(ctx context.Context, apiObject k8suti
|
|||
}
|
||||
if spec.GetMode().SupportsSync() {
|
||||
// Scale syncmasters & syncworkers
|
||||
plan = append(plan, r.createScalePlan(status, status.Members.SyncMasters, api.ServerGroupSyncMasters, spec.SyncMasters.GetCount(), context)...)
|
||||
plan = append(plan, r.createScalePlan(status, status.Members.SyncWorkers, api.ServerGroupSyncWorkers, spec.SyncWorkers.GetCount(), context)...)
|
||||
if spec.Sync.IsEnabled() {
|
||||
plan = append(plan, r.createScalePlan(status, status.Members.SyncMasters, api.ServerGroupSyncMasters, spec.SyncMasters.GetCount(), context)...)
|
||||
plan = append(plan, r.createScalePlan(status, status.Members.SyncWorkers, api.ServerGroupSyncWorkers, spec.SyncWorkers.GetCount(), context)...)
|
||||
} else {
|
||||
plan = append(plan, r.createScalePlan(status, status.Members.SyncMasters, api.ServerGroupSyncMasters, 0, context)...)
|
||||
plan = append(plan, r.createScalePlan(status, status.Members.SyncWorkers, api.ServerGroupSyncWorkers, 0, context)...)
|
||||
}
|
||||
}
|
||||
|
||||
return plan
|
||||
|
|
Loading…
Reference in a new issue