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:
parent
52067b1ea0
commit
c2bcbe9edc
@ -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;
|
||||
}
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user