Skip to content

Commit 861ca0b

Browse files
authored
[Bugfix] Fix Member Terminating state discovery (#1389)
1 parent 2e2333b commit 861ca0b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- (Feature) Deprecate Actions
88
- (Bugfix) Debug mode
99
- (Improvement) Switch to Lease API
10+
- (Bugfix) Fix Member Terminating state discovery
1011

1112
## [1.2.32](https://github.com/arangodb/kube-arangodb/tree/1.2.32) (2023-08-07)
1213
- (Feature) Backup lifetime - remove Backup once its lifetime has been reached

pkg/util/k8sutil/pods.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,9 @@ func IsPodMarkedForDeletion(pod *core.Pod) bool {
295295
return pod.DeletionTimestamp != nil
296296
}
297297

298-
// IsPodTerminating returns true if the pod has been marked for deletion
299-
// but is still running.
298+
// IsPodTerminating returns true if the pod has been marked for deletion.
300299
func IsPodTerminating(pod *core.Pod) bool {
301-
return IsPodMarkedForDeletion(pod) && pod.Status.Phase == core.PodRunning
300+
return IsPodMarkedForDeletion(pod)
302301
}
303302

304303
// getPodCondition returns the condition of given type in the given status.

0 commit comments

Comments
 (0)