[ Agent ] [ Base ] - nfs-server nfs
This commit is contained in:
@@ -85,7 +85,7 @@ func CheckPodStatusTimeout(specificPod string, supreme string, waitTimeOut int)
|
||||
log.ErrorF("[CheckPodStatusTimeout] - 获取Pod信息失败: %v\n", err)
|
||||
} else {
|
||||
log.DebugF("[CheckPodStatusTimeout] - 命名空间: %s, Pod名称: %s, 状态: %s\n", supreme, pod.Name, pod.Status.Phase)
|
||||
if pod.Status.Phase == "Running" {
|
||||
if pod.Status.Phase == corev1.PodRunning || pod.Status.Phase == corev1.PodSucceeded {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user