File tree 3 files changed +80
-11
lines changed
tests/e2e-autoscale/autoscale
3 files changed +80
-11
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # This creates two different deployments:
2
+ # * The first one is to ensure an autoscaler is created without
3
+ # setting any metrics in the Spec.
4
+ # * The second is to check that scaling works properly and that
5
+ # spec updates are working as expected.
6
+ #
7
+ apiVersion : opentelemetry.io/v1alpha1
8
+ kind : OpenTelemetryCollector
9
+ metadata :
10
+ name : simplest
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
+ resources :
18
+ limits :
19
+ cpu : 500m
20
+ memory : 128Mi
21
+ requests :
22
+ cpu : 5m
23
+ memory : 64Mi
24
+
25
+ config : |
26
+ receivers:
27
+ otlp:
28
+ protocols:
29
+ grpc:
30
+ http:
31
+ processors:
32
+
33
+ exporters:
34
+ debug:
35
+
36
+ service:
37
+ pipelines:
38
+ traces:
39
+ receivers: [otlp]
40
+ processors: []
41
+ exporters: [debug]
42
+ ---
43
+ apiVersion : opentelemetry.io/v1alpha1
44
+ kind : OpenTelemetryCollector
45
+ metadata :
46
+ name : simplest-set-utilization
47
+ spec :
48
+ minReplicas : 1
49
+ maxReplicas : 2
50
+ resources :
51
+ limits :
52
+ cpu : 250m
53
+ memory : 128Mi
54
+ requests :
55
+ cpu : 5m
56
+ memory : 64Mi
57
+
58
+ config : |
59
+ receivers:
60
+ otlp:
61
+ protocols:
62
+ grpc:
63
+ http:
64
+ processors:
65
+
66
+ exporters:
67
+ debug:
68
+
69
+ service:
70
+ pipelines:
71
+ traces:
72
+ receivers: [otlp]
73
+ processors: []
74
+ exporters: [debug]
Original file line number Diff line number Diff line change 33
33
name : telemetrygen-set-utilization
34
34
- assert :
35
35
file : 03-assert.yaml
36
+ - name : step-04
37
+ try :
38
+ - apply :
39
+ file : 04-install.yaml
40
+ - error :
41
+ file : 04-error.yaml
You can’t perform that action at this time.
0 commit comments