updating api report
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
+1
-1
@@ -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>
|
||||
|
||||
+9
-5
@@ -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>
|
||||
|
||||
+1
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user