File tree 3 files changed +31
-21
lines changed
tests/e2e-targetallocator/targetallocator-prometheuscr
3 files changed +31
-21
lines changed Original file line number Diff line number Diff line change 1
- 1.32.1
1
+ 2.1.0
Original file line number Diff line number Diff line change @@ -101,6 +101,32 @@ rules:
101
101
verbs :
102
102
- get
103
103
---
104
+ apiVersion : rbac.authorization.k8s.io/v1
105
+ kind : ClusterRoleBinding
106
+ metadata :
107
+ name : (join('-', ['ta', $namespace]))
108
+ roleRef :
109
+ apiGroup : rbac.authorization.k8s.io
110
+ kind : ClusterRole
111
+ name : targetallocator-prometheuscr
112
+ subjects :
113
+ - kind : ServiceAccount
114
+ name : ta
115
+ namespace : ($namespace)
116
+ ---
117
+ apiVersion : rbac.authorization.k8s.io/v1
118
+ kind : ClusterRoleBinding
119
+ metadata :
120
+ name : (join('-', ['collector', $namespace]))
121
+ roleRef :
122
+ apiGroup : rbac.authorization.k8s.io
123
+ kind : ClusterRole
124
+ name : collector-prometheuscr
125
+ subjects :
126
+ - kind : ServiceAccount
127
+ name : collector
128
+ namespace : ($namespace)
129
+ ---
104
130
apiVersion : opentelemetry.io/v1alpha1
105
131
kind : OpenTelemetryCollector
106
132
metadata :
Original file line number Diff line number Diff line change @@ -6,31 +6,15 @@ metadata:
6
6
name : targetallocator-prometheuscr
7
7
spec :
8
8
steps :
9
- - catch :
10
- - podLogs :
11
- selector : app.kubernetes.io/managed-by=opentelemetry-operator
12
- name : step-00
9
+ - name : step-00
13
10
try :
14
- - command :
15
- args :
16
- - create
17
- - clusterrolebinding
18
- - ta-$NAMESPACE
19
- - --clusterrole=targetallocator-prometheuscr
20
- - --serviceaccount=$NAMESPACE:ta
21
- entrypoint : kubectl
22
- - command :
23
- args :
24
- - create
25
- - clusterrolebinding
26
- - collector-$NAMESPACE
27
- - --clusterrole=collector-prometheuscr
28
- - --serviceaccount=$NAMESPACE:collector
29
- entrypoint : kubectl
30
11
- apply :
31
12
file : 00-install.yaml
32
13
- assert :
33
14
file : 00-assert.yaml
15
+ catch :
16
+ - podLogs :
17
+ selector : app.kubernetes.io/managed-by=opentelemetry-operator
34
18
- name : step-01
35
19
try :
36
20
- apply :
You can’t perform that action at this time.
0 commit comments