File tree 2 files changed +19
-19
lines changed
cmd/otel-allocator/watcher
tests/e2e-autoscale/autoscale
2 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -920,7 +920,7 @@ func TestNamespaceLabelUpdate(t *testing.T) {
920
920
default :
921
921
return false
922
922
}
923
- }, eventInterval * 5 , time .Millisecond )
923
+ }, time . Second , time .Millisecond )
924
924
}
925
925
926
926
func TestRateLimit (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -9,17 +9,17 @@ kind: OpenTelemetryCollector
9
9
metadata :
10
10
name : simplest
11
11
spec :
12
- # TODO: these tests use .Spec.MaxReplicas and .Spec.MinReplicas. These fields are
13
- # deprecated and moved to .Spec.Autoscaler. Fine to use these fields to test that old CRD is
14
- # still supported but should eventually be updated.
15
- minReplicas : 1
16
- maxReplicas : 2
17
- autoscaler :
18
- behavior :
19
- scaleUp :
20
- stabilizationWindowSeconds : 10
21
- scaleDown :
22
- stabilizationWindowSeconds : 15
12
+ # TODO: these tests use .Spec.MaxReplicas and .Spec.MinReplicas. These fields are
13
+ # deprecated and moved to .Spec.Autoscaler. Fine to use these fields to test that old CRD is
14
+ # still supported but should eventually be updated.
15
+ # minReplicas: 1
16
+ # maxReplicas: 2
17
+ # autoscaler:
18
+ # behavior:
19
+ # scaleUp:
20
+ # stabilizationWindowSeconds: 10
21
+ # scaleDown:
22
+ # stabilizationWindowSeconds: 15
23
23
resources :
24
24
limits :
25
25
cpu : 500m
@@ -51,13 +51,13 @@ kind: OpenTelemetryCollector
51
51
metadata :
52
52
name : simplest-set-utilization
53
53
spec :
54
- minReplicas : 1
55
- maxReplicas : 2
56
- autoscaler :
57
- targetCPUUtilization : 99
58
- behavior :
59
- scaleUp :
60
- stabilizationWindowSeconds : 300
54
+ # minReplicas: 1
55
+ # maxReplicas: 2
56
+ # autoscaler:
57
+ # targetCPUUtilization: 99
58
+ # behavior:
59
+ # scaleUp:
60
+ # stabilizationWindowSeconds: 300
61
61
resources :
62
62
limits :
63
63
cpu : 250m
You can’t perform that action at this time.
0 commit comments