updating api report

Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
This commit is contained in:
its-mitesh-kumar
2025-11-19 14:02:00 +05:30
parent bb42830a77
commit 0afbd91822
5 changed files with 29 additions and 14 deletions
@@ -129,19 +129,23 @@ const RolloutSummary = ({
<Grid item>
<Typography variant="subtitle2">
{t('hpa.replicasSummary', {
min: hpa.spec?.minReplicas ?? '?',
max: hpa.spec?.maxReplicas ?? '?',
min: String(hpa.spec?.minReplicas ?? '?'),
max: String(hpa.spec?.maxReplicas ?? '?'),
})}
</Typography>
</Grid>
<Grid item>
<Typography variant="subtitle2">
{t('hpa.currentCpuUsageLabel', { value: cpuUtil ?? '?' })}
{t('hpa.currentCpuUsageLabel', {
value: String(cpuUtil ?? '?'),
})}
</Typography>
</Grid>
<Grid item>
<Typography variant="subtitle2">
{t('hpa.targetCpuUsageLabel', { value: specCpuUtil ?? '?' })}
{t('hpa.targetCpuUsageLabel', {
value: String(specCpuUtil ?? '?'),
})}
</Typography>
</Grid>
</Grid>
@@ -163,7 +167,7 @@ const RolloutSummary = ({
<Grid item>
{numberOfPodsWithErrors > 0 ? (
<StatusError>
{t('cluster.podWithErrors', { count: numberOfPodsWithErrors })}
{t('cluster.podsWithErrors', { count: numberOfPodsWithErrors })}
</StatusError>
) : (
<StatusOK>{t('cluster.noPodsWithErrors')}</StatusOK>
@@ -82,7 +82,7 @@ const DaemonSetSummary = ({
<Grid item>
{numberOfPodsWithErrors > 0 ? (
<StatusError>
{t('cluster.podWithErrors', { count: numberOfPodsWithErrors })}
{t('cluster.podsWithErrors', { count: numberOfPodsWithErrors })}
</StatusError>
) : (
<StatusOK>{t('cluster.noPodsWithErrors')}</StatusOK>
@@ -101,19 +101,23 @@ const DeploymentSummary = ({
<Grid item>
<Typography variant="subtitle2">
{t('hpa.replicasSummary', {
min: hpa.spec?.minReplicas ?? '?',
max: hpa.spec?.maxReplicas ?? '?',
min: String(hpa.spec?.minReplicas ?? '?'),
max: String(hpa.spec?.maxReplicas ?? '?'),
})}
</Typography>
</Grid>
<Grid item>
<Typography variant="subtitle2">
{t('hpa.currentCpuUsageLabel', { value: cpuUtil ?? '?' })}
{t('hpa.currentCpuUsageLabel', {
value: String(cpuUtil ?? '?'),
})}
</Typography>
</Grid>
<Grid item>
<Typography variant="subtitle2">
{t('hpa.targetCpuUsageLabel', { value: specCpuUtil ?? '?' })}
{t('hpa.targetCpuUsageLabel', {
value: String(specCpuUtil ?? '?'),
})}
</Typography>
</Grid>
</Grid>
@@ -135,7 +139,7 @@ const DeploymentSummary = ({
<Grid item>
{numberOfPodsWithErrors > 0 ? (
<StatusError>
{t('cluster.podWithErrors', { count: numberOfPodsWithErrors })}
{t('cluster.podsWithErrors', { count: numberOfPodsWithErrors })}
</StatusError>
) : (
<StatusOK>{t('cluster.noPodsWithErrors')}</StatusOK>
@@ -130,7 +130,7 @@ const StatefulSetSummary = ({
<Grid item>
{numberOfPodsWithErrors > 0 ? (
<StatusError>
{t('cluster.podWithErrors', { count: numberOfPodsWithErrors })}
{t('cluster.podsWithErrors', { count: numberOfPodsWithErrors })}
</StatusError>
) : (
<StatusOK>{t('cluster.noPodsWithErrors')}</StatusOK>