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:
parent
2e2333b412
commit
861ca0bab9
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue