1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix metrics in hpa details for newer versions

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2023-01-20 11:31:46 +03:00
parent 52067b1ea0
commit c2bcbe9edc
3 changed files with 12 additions and 2 deletions

View File

@ -11,9 +11,19 @@
}
.metrics .Table {
margin: 0 (-$margin * 3);
.TableCell {
word-break: break-word;
&:first-child {
margin-left: $margin * 2;
}
&:last-child {
margin-right: $margin * 2;
}
&.name {
flex-grow: 2;
}

View File

@ -90,7 +90,7 @@ class NonInjectedHpaDetails extends React.Component<HpaDetailsProps & Dependenci
return (
<Table>
<TableHead>
<TableHead flat>
<TableCell className="name">Name</TableCell>
<TableCell className="metrics">Current / Target</TableCell>
</TableHead>

View File

@ -27,7 +27,7 @@ const horizontalPodAutoscalerDetailItemInjectable = getInjectable({
export const isHorizontalPodAutoscaler = kubeObjectMatchesToKindAndApiVersion(
"HorizontalPodAutoscaler",
["autoscaling/v2beta1"],
["autoscaling/v2", "autoscaling/v2beta2", "autoscaling/v2beta1", "autoscaling/v1"],
);
export default horizontalPodAutoscalerDetailItemInjectable;