修改状态信息

This commit is contained in:
zhangwei 2023-12-06 10:27:30 +08:00
parent 4d6228da44
commit d25fe066d8
1 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ func DeploymentHandler(cloudInfo *pcmCore.CloudInfo, svc *svc.ServiceContext) {
} else if deployment.Status.ReadyReplicas == deployment.Status.Replicas {
cloudInfo.Status = "Running"
} else {
cloudInfo.Status = "Failed"
cloudInfo.Status = "Stopped"
}
}
}
@ -146,7 +146,7 @@ func StatefulSetHandler(cloudInfo *pcmCore.CloudInfo, svc *svc.ServiceContext) {
} else if sts.Status.ReadyReplicas == sts.Status.Replicas {
cloudInfo.Status = "Running"
} else {
cloudInfo.Status = "Failed"
cloudInfo.Status = "Stopped"
}
}
}