[ Agent ] [ Base ] - nfs-server nfs

This commit is contained in:
zeaslity
2023-11-21 17:30:25 +08:00
parent 55d0772d50
commit 86be29cb74
6 changed files with 25 additions and 13 deletions

View File

@@ -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
}
}