in karavan-web/karavan-app/src/main/webui/src/project/pipeline/ProjectStatus.tsx [168:185]
getReplicasPanel(env: string, deploymentStatus?: DeploymentStatus) {
const ok = (deploymentStatus && deploymentStatus?.readyReplicas > 0
&& (deploymentStatus.unavailableReplicas === 0 || deploymentStatus.unavailableReplicas === undefined || deploymentStatus.unavailableReplicas === null)
&& deploymentStatus?.replicas === deploymentStatus?.readyReplicas)
return (
<Flex justifyContent={{default: "justifyContentSpaceBetween"}} alignItems={{default: "alignItemsCenter"}}>
<FlexItem>
{deploymentStatus && <LabelGroup numLabels={3}>
<Tooltip content={"Ready Replicas / Replicas"} position={"left"}>
<Label icon={ok ? <UpIcon/> : <DownIcon/>}
color={ok ? "green" : "grey"}>{"Replicas: " + deploymentStatus.readyReplicas + " / " + deploymentStatus.replicas}</Label>
</Tooltip>
{deploymentStatus.unavailableReplicas > 0 &&
<Tooltip content={"Unavailable replicas"} position={"right"}>
<Label icon={<DownIcon/>} color={"red"}>{deploymentStatus.unavailableReplicas}</Label>
</Tooltip>
}
</LabelGroup>}