Skip to content

Commit

Permalink
fix(apps): simplify helm status [r8s-155] (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
testA113 authored Dec 11, 2024
1 parent 069f22a commit 94d2e32
Showing 1 changed file with 22 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,28 @@ function Cell({
},
])}
/>
{item.DeploymentType ===
KubernetesApplicationDeploymentTypes.Replicated && (
<span>Replicated</span>
)}
{item.DeploymentType === KubernetesApplicationDeploymentTypes.Global && (
<span>Global</span>
)}
{item.RunningPodsCount >= 0 && item.TotalPodsCount >= 0 && (
<span>
<code aria-label="Running Pods" title="Running Pods">
{item.RunningPodsCount}
</code>{' '}
/{' '}
<code aria-label="Total Pods" title="Total Pods">
{item.TotalPodsCount}
</code>
</span>
{item.ApplicationType !== KubernetesApplicationTypes.Helm && (
<>
{item.DeploymentType ===
KubernetesApplicationDeploymentTypes.Replicated && (
<span className="mr-1">Replicated</span>
)}
{item.DeploymentType ===
KubernetesApplicationDeploymentTypes.Global && (
<span className="mr-1">Global</span>
)}
{item.RunningPodsCount >= 0 && item.TotalPodsCount >= 0 && (
<span>
<code aria-label="Running Pods" title="Running Pods">
{item.RunningPodsCount}
</code>{' '}
/{' '}
<code aria-label="Total Pods" title="Total Pods">
{item.TotalPodsCount}
</code>
</span>
)}
</>
)}
{item.KubernetesApplications && <span>{item.Status}</span>}
</>
Expand Down

0 comments on commit 94d2e32

Please sign in to comment.