Skip to content

Commit d632698

Browse files
authored
Fix tests to enable RBAC without Jaeger Query (#1121)
1 parent f7d6e02 commit d632698

14 files changed

+737
-4
lines changed

tests/e2e-openshift/component-replicas/install-tempo-assert.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ spec:
233233
- args:
234234
- --log.level=warn
235235
- --opa.admin-groups=system:cluster-admins,cluster-admin,dedicated-admin
236-
- --opa.matcher=kubernetes_namespace_name
237236
- --web.listen=:8082
238237
- --web.internal.listen=:8083
239238
- --web.healthchecks.url=http://localhost:8082
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: minio
5+
namespace: chainsaw-rbac
6+
status:
7+
readyReplicas: 1
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# The namespace is auto-deleted by chainsaw after the test run.
2+
apiVersion: v1
3+
kind: Namespace
4+
metadata:
5+
name: chainsaw-rbac
6+
---
7+
apiVersion: v1
8+
kind: PersistentVolumeClaim
9+
metadata:
10+
labels:
11+
app.kubernetes.io/name: minio
12+
name: minio
13+
namespace: chainsaw-rbac
14+
spec:
15+
accessModes:
16+
- ReadWriteOnce
17+
resources:
18+
requests:
19+
storage: 2Gi
20+
---
21+
apiVersion: apps/v1
22+
kind: Deployment
23+
metadata:
24+
name: minio
25+
namespace: chainsaw-rbac
26+
spec:
27+
selector:
28+
matchLabels:
29+
app.kubernetes.io/name: minio
30+
strategy:
31+
type: Recreate
32+
template:
33+
metadata:
34+
labels:
35+
app.kubernetes.io/name: minio
36+
spec:
37+
containers:
38+
- command:
39+
- /bin/sh
40+
- -c
41+
- |
42+
mkdir -p /storage/tempo && \
43+
minio server /storage
44+
env:
45+
- name: MINIO_ACCESS_KEY
46+
value: tempo
47+
- name: MINIO_SECRET_KEY
48+
value: supersecret
49+
image: quay.io/minio/minio:latest
50+
name: minio
51+
ports:
52+
- containerPort: 9000
53+
volumeMounts:
54+
- mountPath: /storage
55+
name: storage
56+
volumes:
57+
- name: storage
58+
persistentVolumeClaim:
59+
claimName: minio
60+
---
61+
apiVersion: v1
62+
kind: Service
63+
metadata:
64+
name: minio
65+
namespace: chainsaw-rbac
66+
spec:
67+
ports:
68+
- port: 9000
69+
protocol: TCP
70+
targetPort: 9000
71+
selector:
72+
app.kubernetes.io/name: minio
73+
type: ClusterIP
74+
---
75+
apiVersion: v1
76+
kind: Secret
77+
metadata:
78+
name: minio
79+
namespace: chainsaw-rbac
80+
stringData:
81+
endpoint: http://minio:9000
82+
bucket: tempo
83+
access_key_id: tempo
84+
access_key_secret: supersecret
85+
type: Opaque

0 commit comments

Comments
 (0)