Skip to content

Commit 75974db

Browse files
author
Israel Blancas
authored
Merge branch 'main' into feature/3149
2 parents 9f58634 + cf9f890 commit 75974db

File tree

5 files changed

+35
-6
lines changed

5 files changed

+35
-6
lines changed

.chloggen/bug-fix-hpa.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2+
change_type: enhancement
3+
4+
# The name of the component, or a single word describing the area of concern, (e.g. collector, target allocator, auto-instrumentation, opamp, github action)
5+
component: collector
6+
7+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8+
note: adds test for memory utilization
9+
10+
# One or more tracking issues related to the change
11+
issues: [3283]
12+
13+
# (Optional) One or more lines of additional information to render under the primary note.
14+
# These lines will be padded with 2 spaces and then inserted directly into the document.
15+
# Use pipe (|) for multiline entries.
16+
subtext:

tests/e2e-autoscale/autoscale/00-assert.yaml

+8-3
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,17 @@ spec:
6161
minReplicas: 1
6262
maxReplicas: 2
6363
metrics:
64-
- type: Resource
65-
resource:
66-
name: cpu
64+
- resource:
65+
name: memory
6766
target:
67+
averageUtilization: 99
6868
type: Utilization
69+
type: Resource
70+
- resource:
71+
name: cpu
72+
target:
6973
averageUtilization: 99
74+
type: Utilization
7075
behavior:
7176
scaleUp:
7277
stabilizationWindowSeconds: 300

tests/e2e-autoscale/autoscale/00-install.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ spec:
5454
maxReplicas: 2
5555
autoscaler:
5656
targetCPUUtilization: 99
57+
targetMemoryUtilization: 99
5758
behavior:
5859
scaleUp:
5960
stabilizationWindowSeconds: 300

tests/e2e-autoscale/autoscale/01-assert.yaml

+9-3
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,18 @@ spec:
1010
minReplicas: 1
1111
maxReplicas: 2
1212
metrics:
13-
- type: Resource
14-
resource:
15-
name: cpu
13+
- resource:
14+
name: memory
1615
target:
16+
averageUtilization: 60
1717
type: Utilization
18+
type: Resource
19+
- resource:
20+
name: cpu
21+
target:
1822
averageUtilization: 60
23+
type: Utilization
24+
type: Resource
1925
behavior:
2026
scaleUp:
2127
stabilizationWindowSeconds: 1

tests/e2e-autoscale/autoscale/01-install.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ spec:
1010
maxReplicas: 2
1111
autoscaler:
1212
targetCPUUtilization: 60
13+
targetMemoryUtilization: 60
1314
# Without this behavior the HPA will default to a scaledown stabilization
1415
# window of 300 seconds. Tests should fail if this update is not successful.
1516
behavior:

0 commit comments

Comments
 (0)