Skip to content

Commit

Permalink
add back v1 autoscaler
Browse files Browse the repository at this point in the history
  • Loading branch information
moh-osman3 committed Sep 19, 2022
1 parent e478298 commit b7c0650
Showing 1 changed file with 4 additions and 25 deletions.
29 changes: 4 additions & 25 deletions tests/e2e/autoscale/00-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,17 @@ metadata:
name: simplest-collector
status:
readyReplicas: 1

---
apiVersion: autoscaling/v2beta2
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: simplest-collector
spec:
minReplicas: 1
maxReplicas: 2
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 90
# This is not neccesarily exact. We really just want to wait until this is no longer <unknown>
status:
currentMetrics:
- type: Resource
resource:
name: cpu
current:
averageUtilization: 0
averageValue: 0
currentCPUUtilizationPercentage: 20
---
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
Expand All @@ -42,12 +29,4 @@ spec:
name: cpu
target:
type: Utilization
averageUtilization: 50
status:
currentMetrics:
- type: Resource
resource:
name: cpu
current:
averageUtilization: 0
averageValue: 0
averageUtilization: 50

0 comments on commit b7c0650

Please sign in to comment.