未验证 提交 2e916642 编写于 作者: H Harkishen Singh 提交者: GitHub

Fix timelapse icon in deployments, relicasets (#5061)

Signed-off-by: NHarkishen Singh <harkishensingh@hotmail.com>
上级 7d7c1b34
......@@ -75,11 +75,18 @@ export class DeploymentListComponent extends ResourceListWithStatuses<Deployment
}
isInPendingState(resource: Deployment): boolean {
return resource.pods.warnings.length === 0 && resource.pods.pending > 0;
return (
resource.pods.warnings.length === 0 &&
(resource.pods.pending > 0 || resource.pods.running !== resource.pods.desired)
);
}
isInSuccessState(resource: Deployment): boolean {
return resource.pods.warnings.length === 0 && resource.pods.pending === 0;
return (
resource.pods.warnings.length === 0 &&
resource.pods.pending === 0 &&
resource.pods.running === resource.pods.desired
);
}
getDisplayColumns(): string[] {
......
......@@ -79,11 +79,18 @@ export class ReplicaSetListComponent extends ResourceListWithStatuses<ReplicaSet
}
isInPendingState(resource: ReplicaSet): boolean {
return resource.podInfo.warnings.length === 0 && resource.podInfo.pending > 0;
return (
resource.podInfo.warnings.length === 0 &&
(resource.podInfo.pending > 0 || resource.podInfo.running !== resource.podInfo.desired)
);
}
isInSuccessState(resource: ReplicaSet): boolean {
return resource.podInfo.warnings.length === 0 && resource.podInfo.pending === 0;
return (
resource.podInfo.warnings.length === 0 &&
resource.podInfo.pending === 0 &&
resource.podInfo.running === resource.podInfo.desired
);
}
protected getDisplayColumns(): string[] {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册