Skip to content

Commit

Permalink
Merge branch 'main' into feature/3149
Browse files Browse the repository at this point in the history
  • Loading branch information
iblancasa committed Sep 18, 2024
2 parents 9f58634 + cf9f890 commit 75974db
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 6 deletions.
16 changes: 16 additions & 0 deletions .chloggen/bug-fix-hpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: enhancement

# The name of the component, or a single word describing the area of concern, (e.g. collector, target allocator, auto-instrumentation, opamp, github action)
component: collector

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: adds test for memory utilization

# One or more tracking issues related to the change
issues: [3283]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
11 changes: 8 additions & 3 deletions tests/e2e-autoscale/autoscale/00-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,17 @@ spec:
minReplicas: 1
maxReplicas: 2
metrics:
- type: Resource
resource:
name: cpu
- resource:
name: memory
target:
averageUtilization: 99
type: Utilization
type: Resource
- resource:
name: cpu
target:
averageUtilization: 99
type: Utilization
behavior:
scaleUp:
stabilizationWindowSeconds: 300
Expand Down
1 change: 1 addition & 0 deletions tests/e2e-autoscale/autoscale/00-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ spec:
maxReplicas: 2
autoscaler:
targetCPUUtilization: 99
targetMemoryUtilization: 99
behavior:
scaleUp:
stabilizationWindowSeconds: 300
Expand Down
12 changes: 9 additions & 3 deletions tests/e2e-autoscale/autoscale/01-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@ spec:
minReplicas: 1
maxReplicas: 2
metrics:
- type: Resource
resource:
name: cpu
- resource:
name: memory
target:
averageUtilization: 60
type: Utilization
type: Resource
- resource:
name: cpu
target:
averageUtilization: 60
type: Utilization
type: Resource
behavior:
scaleUp:
stabilizationWindowSeconds: 1
Expand Down
1 change: 1 addition & 0 deletions tests/e2e-autoscale/autoscale/01-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
maxReplicas: 2
autoscaler:
targetCPUUtilization: 60
targetMemoryUtilization: 60
# Without this behavior the HPA will default to a scaledown stabilization
# window of 300 seconds. Tests should fail if this update is not successful.
behavior:
Expand Down

0 comments on commit 75974db

Please sign in to comment.