修改状态信息
This commit is contained in:
parent
4d6228da44
commit
d25fe066d8
|
@ -125,7 +125,7 @@ func DeploymentHandler(cloudInfo *pcmCore.CloudInfo, svc *svc.ServiceContext) {
|
||||||
} else if deployment.Status.ReadyReplicas == deployment.Status.Replicas {
|
} else if deployment.Status.ReadyReplicas == deployment.Status.Replicas {
|
||||||
cloudInfo.Status = "Running"
|
cloudInfo.Status = "Running"
|
||||||
} else {
|
} 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 {
|
} else if sts.Status.ReadyReplicas == sts.Status.Replicas {
|
||||||
cloudInfo.Status = "Running"
|
cloudInfo.Status = "Running"
|
||||||
} else {
|
} else {
|
||||||
cloudInfo.Status = "Failed"
|
cloudInfo.Status = "Stopped"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue