Skip to content

Commit 968b0a6

Browse files
Service autoscaling on both ram and cpu supported (#474)
1 parent fd0908f commit 968b0a6

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

modules/service/deployment/0.1/facets.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@ spec:
547547
enum:
548548
- CPU
549549
- RAM
550+
- BOTH
550551
cpu_threshold:
551552
type: string
552553
title: CPU Threshold
@@ -557,7 +558,7 @@ spec:
557558
from 1-100"
558559
x-ui-visible-if:
559560
field: "spec.runtime.autoscaling.scaling_on"
560-
values: ["CPU"]
561+
values: ["CPU", "BOTH"]
561562
ram_threshold:
562563
type: string
563564
title: RAM Threshold
@@ -568,7 +569,7 @@ spec:
568569
from 1-100"
569570
x-ui-visible-if:
570571
field: "spec.runtime.autoscaling.scaling_on"
571-
values: ["RAM"]
572+
values: ["RAM", "BOTH"]
572573
size:
573574
type: object
574575
title: Size

modules/service/statefulset/0.1/facets.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@ spec:
547547
enum:
548548
- CPU
549549
- RAM
550+
- BOTH
550551
cpu_threshold:
551552
type: string
552553
title: CPU Threshold
@@ -559,6 +560,7 @@ spec:
559560
field: spec.runtime.autoscaling.scaling_on
560561
values:
561562
- CPU
563+
- BOTH
562564
ram_threshold:
563565
type: string
564566
title: RAM Threshold
@@ -571,6 +573,7 @@ spec:
571573
field: spec.runtime.autoscaling.scaling_on
572574
values:
573575
- RAM
576+
- BOTH
574577
size:
575578
type: object
576579
title: Size

0 commit comments

Comments
 (0)