1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

[Bugfix] Fix Member Terminating state discovery (#1389)

This commit is contained in:
Adam Janikowski 2023-08-29 23:21:49 +02:00 committed by GitHub
parent 2e2333b412
commit 861ca0bab9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -7,6 +7,7 @@
- (Feature) Deprecate Actions
- (Bugfix) Debug mode
- (Improvement) Switch to Lease API
- (Bugfix) Fix Member Terminating state discovery
## [1.2.32](https://github.com/arangodb/kube-arangodb/tree/1.2.32) (2023-08-07)
- (Feature) Backup lifetime - remove Backup once its lifetime has been reached

View file

@ -295,10 +295,9 @@ func IsPodMarkedForDeletion(pod *core.Pod) bool {
return pod.DeletionTimestamp != nil
}
// IsPodTerminating returns true if the pod has been marked for deletion
// but is still running.
// IsPodTerminating returns true if the pod has been marked for deletion.
func IsPodTerminating(pod *core.Pod) bool {
return IsPodMarkedForDeletion(pod) && pod.Status.Phase == core.PodRunning
return IsPodMarkedForDeletion(pod)
}
// getPodCondition returns the condition of given type in the given status.