Skip to content

Commit

Permalink
Add check for ConditionTypeTerminating
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-vanyasin committed Sep 15, 2023
1 parent ac27238 commit 0f56fad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
- (Maintenance) Bump K8S Version to 1.24.16
- (Maintenance) Bump K8S Version to 1.25.12
- (Maintenance) Bump Go to 1.20.7
- (Improvement) Restart pod if it could not be scheduled and related scheduling parameters changed
- (Improvement) Remove PodSchedulingFailure condition instead of setting to false
- (Improvement) Remove PodSchedulingFailure condition instead of setting to false, restart pod if it could not be scheduled

## [1.2.31](https://github.com/arangodb/kube-arangodb/tree/1.2.31) (2023-07-14)
- (Improvement) Block traffic on the services if there is more than 1 active leader in ActiveFailover mode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *Reconciler) createMemberPodSchedulingFailurePlan(ctx context.Context,
continue
}

if m.Member.Conditions.IsTrue(api.ConditionTypeScheduled) {
if m.Member.Conditions.IsTrue(api.ConditionTypeScheduled) || m.Member.Conditions.IsTrue(api.ConditionTypeTerminating) {
// Action is needed only for pods which are not scheduled yet
continue
}
Expand Down

0 comments on commit 0f56fad

Please sign in to comment.