File tree 13 files changed +120
-77
lines changed
prometheus-config-validation
e2e-prometheuscr/create-sm-prometheus-exporters
targetallocator-kubernetessd
targetallocator-prometheuscr
13 files changed +120
-77
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 @@ -64,6 +64,19 @@ rules:
64
64
verbs :
65
65
- get
66
66
---
67
+ apiVersion : rbac.authorization.k8s.io/v1
68
+ kind : ClusterRoleBinding
69
+ metadata :
70
+ name : simplest-targetallocator-create-sm-prometheus
71
+ roleRef :
72
+ apiGroup : rbac.authorization.k8s.io
73
+ kind : ClusterRole
74
+ name : create-sm-prometheus
75
+ subjects :
76
+ - kind : ServiceAccount
77
+ name : ta
78
+ namespace : create-sm-prometheus
79
+ ---
67
80
apiVersion : opentelemetry.io/v1alpha1
68
81
kind : OpenTelemetryCollector
69
82
metadata :
Original file line number Diff line number Diff line change 60
60
file : 07-error.yaml
61
61
- name : step-08
62
62
try :
63
- - command :
64
- args :
65
- - create
66
- - clusterrolebinding
67
- - simplest-targetallocator-create-sm-prometheus
68
- - --clusterrole=create-sm-prometheus
69
- - --serviceaccount=create-sm-prometheus:ta
70
- entrypoint : kubectl
71
63
- apply :
72
64
file : 08-install.yaml
73
65
- assert :
Original file line number Diff line number Diff line change @@ -27,6 +27,19 @@ rules:
27
27
- list
28
28
- watch
29
29
---
30
+ apiVersion : rbac.authorization.k8s.io/v1
31
+ kind : ClusterRoleBinding
32
+ metadata :
33
+ name : (join('-', ['default-view', $namespace]))
34
+ roleRef :
35
+ apiGroup : rbac.authorization.k8s.io
36
+ kind : ClusterRole
37
+ name : targetallocator-features
38
+ subjects :
39
+ - kind : ServiceAccount
40
+ name : ta
41
+ namespace : ($namespace)
42
+ ---
30
43
apiVersion : opentelemetry.io/v1alpha1
31
44
kind : OpenTelemetryCollector
32
45
metadata :
Original file line number Diff line number Diff line change 16
16
selector : app.kubernetes.io/component=opentelemetry-targetallocator
17
17
name : step-00
18
18
try :
19
- - command :
20
- args :
21
- - -n
22
- - $NAMESPACE
23
- - create
24
- - clusterrolebinding
25
- - default-view-$NAMESPACE
26
- - --clusterrole=targetallocator-features
27
- - --serviceaccount=$NAMESPACE:ta
28
- entrypoint : kubectl
29
19
- apply :
20
+ template : true
30
21
file : 00-install.yaml
31
22
- assert :
32
23
file : 00-assert.yaml
Original file line number Diff line number Diff line change @@ -92,6 +92,32 @@ rules:
92
92
verbs :
93
93
- get
94
94
---
95
+ apiVersion : rbac.authorization.k8s.io/v1
96
+ kind : ClusterRoleBinding
97
+ metadata :
98
+ name : (join('-', ['ta', $namespace]))
99
+ roleRef :
100
+ apiGroup : rbac.authorization.k8s.io
101
+ kind : ClusterRole
102
+ name : targetallocator-kubernetessd
103
+ subjects :
104
+ - kind : ServiceAccount
105
+ name : ta
106
+ namespace : ($namespace)
107
+ ---
108
+ apiVersion : rbac.authorization.k8s.io/v1
109
+ kind : ClusterRoleBinding
110
+ metadata :
111
+ name : (join('-', ['collector', $namespace]))
112
+ roleRef :
113
+ apiGroup : rbac.authorization.k8s.io
114
+ kind : ClusterRole
115
+ name : collector-kubernetessd
116
+ subjects :
117
+ - kind : ServiceAccount
118
+ name : collector
119
+ namespace : ($namespace)
120
+ ---
95
121
apiVersion : opentelemetry.io/v1alpha1
96
122
kind : OpenTelemetryCollector
97
123
metadata :
Original file line number Diff line number Diff line change @@ -6,33 +6,18 @@ metadata:
6
6
name : targetallocator-kubernetessd
7
7
spec :
8
8
steps :
9
- - catch :
10
- - script :
11
- content : ./tests/e2e/smoke-daemonset/check-daemonset.sh
12
- - podLogs :
13
- selector : app.kubernetes.io/managed-by=opentelemetry-operator
14
- name : step-00
9
+ - name : step-00
15
10
try :
16
- - command :
17
- args :
18
- - create
19
- - clusterrolebinding
20
- - ta-$NAMESPACE
21
- - --clusterrole=targetallocator-kubernetessd
22
- - --serviceaccount=$NAMESPACE:ta
23
- entrypoint : kubectl
24
- - command :
25
- args :
26
- - create
27
- - clusterrolebinding
28
- - collector-$NAMESPACE
29
- - --clusterrole=collector-kubernetessd
30
- - --serviceaccount=$NAMESPACE:collector
31
- entrypoint : kubectl
32
11
- apply :
12
+ template : true
33
13
file : 00-install.yaml
34
14
- assert :
35
15
file : 00-assert.yaml
16
+ catch :
17
+ - script :
18
+ content : ./tests/e2e/smoke-daemonset/check-daemonset.sh
19
+ - podLogs :
20
+ selector : app.kubernetes.io/managed-by=opentelemetry-operator
36
21
- name : step-01
37
22
try :
38
23
- apply :
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,16 @@ 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 :
12
+ template : true
31
13
file : 00-install.yaml
32
14
- assert :
33
15
file : 00-assert.yaml
16
+ catch :
17
+ - podLogs :
18
+ selector : app.kubernetes.io/managed-by=opentelemetry-operator
34
19
- name : step-01
35
20
try :
36
21
- apply :
Original file line number Diff line number Diff line change @@ -19,6 +19,19 @@ rules:
19
19
- list
20
20
- watch
21
21
---
22
+ apiVersion : rbac.authorization.k8s.io/v1
23
+ kind : ClusterRoleBinding
24
+ metadata :
25
+ name : (join('-', ['default-view', $namespace]))
26
+ roleRef :
27
+ apiGroup : rbac.authorization.k8s.io
28
+ kind : ClusterRole
29
+ name : promreceiver-allocatorconfig
30
+ subjects :
31
+ - kind : ServiceAccount
32
+ name : ta
33
+ namespace : ($namespace)
34
+ ---
22
35
apiVersion : opentelemetry.io/v1alpha1
23
36
kind : OpenTelemetryCollector
24
37
metadata :
Original file line number Diff line number Diff line change 8
8
steps :
9
9
- name : step-00
10
10
try :
11
- - script :
12
- content : |
13
- kubectl -n $NAMESPACE \
14
- create clusterrolebinding default-view-$NAMESPACE \
15
- --clusterrole=promreceiver-allocatorconfig \
16
- --serviceaccount=$NAMESPACE:ta
17
11
- apply :
12
+ template : true
18
13
file : 00-promreceiver-allocatorconfig.yaml
19
14
- assert :
20
15
file : 00-assert.yaml
Original file line number Diff line number Diff line change @@ -19,6 +19,19 @@ rules:
19
19
- list
20
20
- watch
21
21
---
22
+ apiVersion : rbac.authorization.k8s.io/v1
23
+ kind : ClusterRoleBinding
24
+ metadata :
25
+ name : (join('-', ['default-view', $namespace]))
26
+ roleRef :
27
+ apiGroup : rbac.authorization.k8s.io
28
+ kind : ClusterRole
29
+ name : smoke-targetallocator
30
+ subjects :
31
+ - kind : ServiceAccount
32
+ name : ta
33
+ namespace : ($namespace)
34
+ ---
22
35
apiVersion : opentelemetry.io/v1alpha1
23
36
kind : OpenTelemetryCollector
24
37
metadata :
Original file line number Diff line number Diff line change 11
11
selector : app.kubernetes.io/component=opentelemetry-targetallocator
12
12
name : step-00
13
13
try :
14
- - command :
15
- args :
16
- - -n
17
- - $NAMESPACE
18
- - create
19
- - clusterrolebinding
20
- - default-view-$NAMESPACE
21
- - --clusterrole=smoke-targetallocator
22
- - --serviceaccount=$NAMESPACE:ta
23
- entrypoint : kubectl
24
14
- apply :
15
+ template : true
25
16
file : 00-install.yaml
26
17
- assert :
27
18
file : 00-assert.yaml
You can’t perform that action at this time.
0 commit comments