Skip to content

Commit ff759b5

Browse files
authored
[Feature] Do not restart member if all pods in group are not ready
1 parent 3a082b2 commit ff759b5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
- (Feature) Switch services to Port names
3737
- (Feature) Configurable ArangoD Port
3838
- (Feature) Allow to exclude metrics
39+
- (Feature) Do not restart member if all pods in group are not ready
3940

4041
## [1.2.20](https://github.com/arangodb/kube-arangodb/tree/1.2.20) (2022-10-25)
4142
- (Feature) Add action progress

pkg/deployment/reconcile/plan_builder_rotate_upgrade.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,9 @@ func groupReadyForRestart(context PlanBuilderContext, status api.DeploymentStatu
458458
return false, "Not all members are serving"
459459
}
460460

461+
if !status.Members.MembersOfGroup(group).AllMembersReady() {
462+
return false, "Not all members are ready"
463+
}
461464
switch group {
462465
case api.ServerGroupDBServers:
463466
agencyState, ok := context.GetAgencyCache()

0 commit comments

Comments
 (0)