mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
[Bugfix] Proper agent cleanout (#1090)
This commit is contained in:
parent
20a53e7d9c
commit
62d4244155
2 changed files with 4 additions and 3 deletions
|
@ -18,6 +18,7 @@
|
|||
- (Feature) Add Timezone management
|
||||
- (Bugfix) Always recreate DBServers if they have a leader on it.
|
||||
- (Feature) Immutable spec
|
||||
- (Bugfix) Proper agent cleanout
|
||||
|
||||
## [1.2.15](https://github.com/arangodb/kube-arangodb/tree/1.2.15) (2022-07-20)
|
||||
- (Bugfix) Ensure pod names not too long
|
||||
|
|
|
@ -140,13 +140,13 @@ func (r *Reconciler) createReplaceMemberPlan(ctx context.Context, apiObject k8su
|
|||
Str("role", group.AsRole()).
|
||||
Debug("Creating replacement plan")
|
||||
case api.ServerGroupCoordinators:
|
||||
plan = append(plan, actions.NewAction(api.ActionTypeRemoveMember, group, member))
|
||||
plan = append(plan, cleanOutMember(group, member)...)
|
||||
r.planLogger.
|
||||
Str("role", group.AsRole()).
|
||||
Debug("Creating replacement plan")
|
||||
case api.ServerGroupAgents:
|
||||
plan = append(plan, actions.NewAction(api.ActionTypeRemoveMember, group, member),
|
||||
actions.NewAction(api.ActionTypeAddMember, group, withPredefinedMember("")))
|
||||
plan = append(plan, cleanOutMember(group, member)...)
|
||||
plan = append(plan, actions.NewAction(api.ActionTypeAddMember, group, withPredefinedMember("")))
|
||||
r.planLogger.
|
||||
Str("role", group.AsRole()).
|
||||
Debug("Creating replacement plan")
|
||||
|
|
Loading…
Reference in a new issue