1
0
Fork 0
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:
Adam Janikowski 2022-08-29 21:35:58 +02:00 committed by GitHub
parent 20a53e7d9c
commit 62d4244155
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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")