Skip to content

Commit 636b801

Browse files
committed
fix e2e tests
1 parent c0bf336 commit 636b801

File tree

2 files changed

+1
-154
lines changed

2 files changed

+1
-154
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
apiVersion: apps/v1
2-
kind: StatefulSet
3-
metadata:
4-
name: prometheus-cr-collector
5-
status:
6-
readyReplicas: 1
7-
replicas: 1
8-
---
9-
apiVersion: apps/v1
10-
kind: Deployment
11-
metadata:
12-
name: prometheus-cr-targetallocator
13-
status:
14-
observedGeneration: 1
15-
readyReplicas: 1
16-
replicas: 1
17-
---
181
apiVersion: v1
192
data:
203
targetallocator.yaml:
@@ -24,5 +7,4 @@ data:
247
( contains(@, join(':', ['scrape_config_namespace_selector', '{}'])) ): true
258
kind: ConfigMap
269
metadata:
27-
name: prometheus-cr-v1beta1-targetallocator
28-
---
10+
name: prometheus-cr-v1beta1-targetallocator
Original file line numberDiff line numberDiff line change
@@ -1,134 +1,3 @@
1-
apiVersion: v1
2-
automountServiceAccountToken: true
3-
kind: ServiceAccount
4-
metadata:
5-
name: ta
6-
---
7-
apiVersion: v1
8-
automountServiceAccountToken: true
9-
kind: ServiceAccount
10-
metadata:
11-
name: collector
12-
---
13-
apiVersion: rbac.authorization.k8s.io/v1
14-
kind: ClusterRole
15-
metadata:
16-
name: targetallocator-prometheuscr
17-
rules:
18-
- apiGroups:
19-
- ""
20-
resources:
21-
- pods
22-
- nodes
23-
- services
24-
- endpoints
25-
- configmaps
26-
- secrets
27-
- namespaces
28-
verbs:
29-
- get
30-
- watch
31-
- list
32-
- apiGroups:
33-
- apps
34-
resources:
35-
- statefulsets
36-
- services
37-
- endpoints
38-
verbs:
39-
- get
40-
- watch
41-
- list
42-
- apiGroups:
43-
- discovery.k8s.io
44-
resources:
45-
- endpointslices
46-
verbs:
47-
- get
48-
- watch
49-
- list
50-
- apiGroups:
51-
- networking.k8s.io
52-
resources:
53-
- ingresses
54-
verbs:
55-
- get
56-
- watch
57-
- list
58-
- apiGroups:
59-
- monitoring.coreos.com
60-
resources:
61-
- servicemonitors
62-
- podmonitors
63-
- scrapeconfigs
64-
- probes
65-
verbs:
66-
- get
67-
- watch
68-
- list
69-
- nonResourceURLs:
70-
- /metrics
71-
verbs:
72-
- get
73-
---
74-
apiVersion: rbac.authorization.k8s.io/v1
75-
kind: ClusterRole
76-
metadata:
77-
name: collector-prometheuscr
78-
rules:
79-
- apiGroups:
80-
- ""
81-
resources:
82-
- pods
83-
- nodes
84-
- nodes/metrics
85-
- services
86-
- endpoints
87-
- namespaces
88-
verbs:
89-
- get
90-
- watch
91-
- list
92-
- apiGroups:
93-
- networking.k8s.io
94-
resources:
95-
- ingresses
96-
verbs:
97-
- get
98-
- watch
99-
- list
100-
- nonResourceURLs:
101-
- /metrics
102-
- /metrics/cadvisor
103-
verbs:
104-
- get
105-
---
106-
apiVersion: rbac.authorization.k8s.io/v1
107-
kind: ClusterRoleBinding
108-
metadata:
109-
name: (join('-', ['ta', $namespace]))
110-
roleRef:
111-
apiGroup: rbac.authorization.k8s.io
112-
kind: ClusterRole
113-
name: targetallocator-prometheuscr
114-
subjects:
115-
- kind: ServiceAccount
116-
name: ta
117-
namespace: ($namespace)
118-
---
119-
apiVersion: rbac.authorization.k8s.io/v1
120-
kind: ClusterRoleBinding
121-
metadata:
122-
name: (join('-', ['collector', $namespace]))
123-
roleRef:
124-
apiGroup: rbac.authorization.k8s.io
125-
kind: ClusterRole
126-
name: collector-prometheuscr
127-
subjects:
128-
- kind: ServiceAccount
129-
name: collector
130-
namespace: ($namespace)
131-
---
1321
apiVersion: opentelemetry.io/v1alpha1
1332
kind: OpenTelemetryCollector
1343
metadata:
@@ -157,8 +26,4 @@ spec:
15726
prometheusCR:
15827
enabled: true
15928
scrapeInterval: 1s
160-
podMonitorNamespaceSelector: {}
161-
serviceMonitorNamespaceSelector: {}
162-
scrapeConfigNamespaceSelector: {}
163-
probeNamespaceSelector: {}
16429
serviceAccount: ta

0 commit comments

Comments
 (0)