Revert "Make StatefulSet restart pods with phase Succeeded"

This commit is contained in:
Aleksandra Malinowska
2023-09-19 15:49:36 +02:00
committed by GitHub
parent 408e45a66a
commit 5ed60a72f6
3 changed files with 7 additions and 65 deletions

View File

@@ -426,11 +426,6 @@ func isFailed(pod *v1.Pod) bool {
return pod.Status.Phase == v1.PodFailed
}
// isSucceeded returns true if pod has a Phase of PodSucceeded
func isSucceeded(pod *v1.Pod) bool {
return pod.Status.Phase == v1.PodSucceeded
}
// isTerminating returns true if pod's DeletionTimestamp has been set
func isTerminating(pod *v1.Pod) bool {
return pod.DeletionTimestamp != nil