Skip to content

Commit c8248de

Browse files
authored
[Bugfix] Do not tolerate False Bootstrap condition in UpToDate evaluation (#1184)
1 parent 4644bfb commit c8248de

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- (DebugPackage) Collect logs from pods
2020
- (Bugfix) Move Agency CommitIndex log message to Trace
2121
- (Feature) Force delete Pods which are stuck in init phase
22+
- (Bugfix) Do not tolerate False Bootstrap condition in UpToDate evaluation
2223

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

pkg/deployment/deployment_inspector.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,14 @@ func (d *Deployment) isUpToDateStatus(status api.DeploymentStatus) (upToDate boo
455455
return
456456
}
457457

458+
if !status.Conditions.Check(api.ConditionTypeBootstrapCompleted).Exists().IsTrue().Evaluate() {
459+
reason = "ArangoDB is not bootstrapped"
460+
upToDate = false
461+
return
462+
}
463+
458464
if !status.Conditions.Check(api.ConditionTypeReachable).Exists().IsTrue().Evaluate() {
465+
reason = "ArangoDB is not reachable"
459466
upToDate = false
460467
return
461468
}

0 commit comments

Comments
 (0)