[ Agent ] [ App ] - fix middlewares bugs

This commit is contained in:
zeaslity
2023-11-22 11:25:33 +08:00
parent a2d57bcab8
commit be97b71b75
3 changed files with 30 additions and 6 deletions

View File

@@ -144,7 +144,7 @@ func K8sCheckPVCStatusTimeOut(specificPvcName string, supreme string, waitTimeOu
log.ErrorF("[K8sCheckPVCStatusTimeOut] - 命名空间: [ %s ], 获取 PVC [%s] 信息失败: %s ", supreme, specificPvcName, err.Error())
}
if pvc.Status.Phase == "Running" {
if pvc.Status.Phase == corev1.ClaimBound {
log.DebugF("K8sCheckPVCStatusTimeOut] - PVC %s in namespace %s is running", specificPvcName, supreme)
return true
} else {