Skip to content

Commit 5b3deae

Browse files
committed
begin fix
1 parent ee8db9d commit 5b3deae

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

cmd/otel-allocator/watcher/promOperator_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ func TestNamespaceLabelUpdate(t *testing.T) {
920920
default:
921921
return false
922922
}
923-
}, eventInterval*5, time.Millisecond)
923+
}, time.Second, time.Millisecond)
924924
}
925925

926926
func TestRateLimit(t *testing.T) {

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

+18-18
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ kind: OpenTelemetryCollector
99
metadata:
1010
name: simplest
1111
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
2323
resources:
2424
limits:
2525
cpu: 500m
@@ -51,13 +51,13 @@ kind: OpenTelemetryCollector
5151
metadata:
5252
name: simplest-set-utilization
5353
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
6161
resources:
6262
limits:
6363
cpu: 250m

0 commit comments

Comments
 (0)