Skip to content

Commit 3023b13

Browse files
FIx multitenancy and component-replicas test (#1006)
Co-authored-by: Andreas Gerstmayr <agerstmayr@redhat.com>
1 parent 020ed7d commit 3023b13

File tree

8 files changed

+124
-120
lines changed

8 files changed

+124
-120
lines changed

tests/e2e-openshift/component-replicas/install-otelcol.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
2424
exporters:
2525
otlp:
26-
endpoint: tempo-simplest-gateway.chainsaw-replicas.svc.cluster.local:8090
26+
endpoint: tempo-cmpreps-gateway.chainsaw-replicas.svc.cluster.local:8090
2727
tls:
2828
insecure: false
2929
ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt"
@@ -32,7 +32,7 @@ spec:
3232
headers:
3333
X-Scope-OrgID: "dev"
3434
otlphttp:
35-
endpoint: https://tempo-simplest-gateway.chainsaw-replicas.svc.cluster.local:8080/api/traces/v1/dev
35+
endpoint: https://tempo-cmpreps-gateway.chainsaw-replicas.svc.cluster.local:8080/api/traces/v1/dev
3636
tls:
3737
insecure: false
3838
ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt"

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

Lines changed: 57 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ kind: Secret
66
metadata:
77
labels:
88
app.kubernetes.io/component: gateway
9-
app.kubernetes.io/instance: simplest
9+
app.kubernetes.io/instance: cmpreps
1010
app.kubernetes.io/managed-by: tempo-operator
1111
app.kubernetes.io/name: tempo
12-
name: tempo-simplest-gateway
12+
name: tempo-cmpreps-gateway
1313
namespace: chainsaw-replicas
1414
ownerReferences:
1515
- apiVersion: tempo.grafana.com/v1alpha1
1616
blockOwnerDeletion: true
1717
controller: true
1818
kind: TempoStack
19-
name: simplest
19+
name: cmpreps
2020
type: Opaque
2121
---
2222
apiVersion: v1
@@ -26,67 +26,67 @@ kind: ConfigMap
2626
metadata:
2727
labels:
2828
app.kubernetes.io/component: gateway
29-
app.kubernetes.io/instance: simplest
29+
app.kubernetes.io/instance: cmpreps
3030
app.kubernetes.io/managed-by: tempo-operator
3131
app.kubernetes.io/name: tempo
32-
name: tempo-simplest-gateway
32+
name: tempo-cmpreps-gateway
3333
namespace: chainsaw-replicas
3434
ownerReferences:
3535
- apiVersion: tempo.grafana.com/v1alpha1
3636
blockOwnerDeletion: true
3737
controller: true
3838
kind: TempoStack
39-
name: simplest
39+
name: cmpreps
4040
---
4141
apiVersion: v1
4242
kind: ConfigMap
4343
metadata:
4444
labels:
4545
app.kubernetes.io/component: gateway
46-
app.kubernetes.io/instance: simplest
46+
app.kubernetes.io/instance: cmpreps
4747
app.kubernetes.io/managed-by: tempo-operator
4848
app.kubernetes.io/name: tempo
4949
annotations:
5050
service.beta.openshift.io/inject-cabundle: "true"
51-
name: tempo-simplest-gateway-cabundle
51+
name: tempo-cmpreps-gateway-cabundle
5252
namespace: chainsaw-replicas
5353
ownerReferences:
5454
- apiVersion: tempo.grafana.com/v1alpha1
5555
blockOwnerDeletion: true
5656
controller: true
5757
kind: TempoStack
58-
name: simplest
58+
name: cmpreps
5959
---
6060
apiVersion: v1
6161
automountServiceAccountToken: true
6262
kind: ServiceAccount
6363
metadata:
6464
annotations:
65-
serviceaccounts.openshift.io/oauth-redirectreference.dev: '{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"tempo-simplest-gateway"}}'
66-
serviceaccounts.openshift.io/oauth-redirectreference.prod: '{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"tempo-simplest-gateway"}}'
65+
serviceaccounts.openshift.io/oauth-redirectreference.dev: '{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"tempo-cmpreps-gateway"}}'
66+
serviceaccounts.openshift.io/oauth-redirectreference.prod: '{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"tempo-cmpreps-gateway"}}'
6767
labels:
6868
app.kubernetes.io/component: gateway
69-
app.kubernetes.io/instance: simplest
69+
app.kubernetes.io/instance: cmpreps
7070
app.kubernetes.io/managed-by: tempo-operator
7171
app.kubernetes.io/name: tempo
72-
name: tempo-simplest-gateway
72+
name: tempo-cmpreps-gateway
7373
namespace: chainsaw-replicas
7474
ownerReferences:
7575
- apiVersion: tempo.grafana.com/v1alpha1
7676
blockOwnerDeletion: true
7777
controller: true
7878
kind: TempoStack
79-
name: simplest
79+
name: cmpreps
8080
---
8181
apiVersion: rbac.authorization.k8s.io/v1
8282
kind: ClusterRole
8383
metadata:
8484
labels:
8585
app.kubernetes.io/component: gateway
86-
app.kubernetes.io/instance: simplest
86+
app.kubernetes.io/instance: cmpreps
8787
app.kubernetes.io/managed-by: tempo-operator
8888
app.kubernetes.io/name: tempo
89-
name: tempo-simplest-gateway
89+
name: tempo-cmpreps-gateway
9090
rules:
9191
- apiGroups:
9292
- authentication.k8s.io
@@ -106,46 +106,46 @@ kind: ClusterRoleBinding
106106
metadata:
107107
labels:
108108
app.kubernetes.io/component: gateway
109-
app.kubernetes.io/instance: simplest
109+
app.kubernetes.io/instance: cmpreps
110110
app.kubernetes.io/managed-by: tempo-operator
111111
app.kubernetes.io/name: tempo
112-
name: tempo-simplest-gateway
112+
name: tempo-cmpreps-gateway
113113
roleRef:
114114
apiGroup: rbac.authorization.k8s.io
115115
kind: ClusterRole
116-
name: tempo-simplest-gateway
116+
name: tempo-cmpreps-gateway
117117
subjects:
118118
- kind: ServiceAccount
119-
name: tempo-simplest-gateway
119+
name: tempo-cmpreps-gateway
120120
---
121121
apiVersion: apps/v1
122122
kind: Deployment
123123
metadata:
124124
labels:
125125
app.kubernetes.io/component: gateway
126-
app.kubernetes.io/instance: simplest
126+
app.kubernetes.io/instance: cmpreps
127127
app.kubernetes.io/managed-by: tempo-operator
128128
app.kubernetes.io/name: tempo
129-
name: tempo-simplest-gateway
129+
name: tempo-cmpreps-gateway
130130
namespace: chainsaw-replicas
131131
ownerReferences:
132132
- apiVersion: tempo.grafana.com/v1alpha1
133133
blockOwnerDeletion: true
134134
controller: true
135135
kind: TempoStack
136-
name: simplest
136+
name: cmpreps
137137
spec:
138138
selector:
139139
matchLabels:
140140
app.kubernetes.io/component: gateway
141-
app.kubernetes.io/instance: simplest
141+
app.kubernetes.io/instance: cmpreps
142142
app.kubernetes.io/managed-by: tempo-operator
143143
app.kubernetes.io/name: tempo
144144
template:
145145
metadata:
146146
labels:
147147
app.kubernetes.io/component: gateway
148-
app.kubernetes.io/instance: simplest
148+
app.kubernetes.io/instance: cmpreps
149149
app.kubernetes.io/managed-by: tempo-operator
150150
app.kubernetes.io/name: tempo
151151
spec:
@@ -154,9 +154,9 @@ spec:
154154
- --traces.tenant-header=x-scope-orgid
155155
- --web.listen=0.0.0.0:8080
156156
- --web.internal.listen=0.0.0.0:8081
157-
- --traces.write.otlpgrpc.endpoint=tempo-simplest-distributor.chainsaw-replicas.svc.cluster.local:4317
158-
- --traces.write.otlphttp.endpoint=https://tempo-simplest-distributor.chainsaw-replicas.svc.cluster.local:4318
159-
- --traces.tempo.endpoint=https://tempo-simplest-query-frontend.chainsaw-replicas.svc.cluster.local:3200
157+
- --traces.write.otlpgrpc.endpoint=tempo-cmpreps-distributor.chainsaw-replicas.svc.cluster.local:4317
158+
- --traces.write.otlphttp.endpoint=https://tempo-cmpreps-distributor.chainsaw-replicas.svc.cluster.local:4318
159+
- --traces.tempo.endpoint=https://tempo-cmpreps-query-frontend.chainsaw-replicas.svc.cluster.local:3200
160160
- --grpc.listen=0.0.0.0:8090
161161
- --rbac.config=/etc/tempo-gateway/cm/rbac.yaml
162162
- --tenants.config=/etc/tempo-gateway/secret/tenants.yaml
@@ -166,13 +166,14 @@ spec:
166166
- --traces.tls.key-file=/var/run/tls/server/tls.key
167167
- --traces.tls.cert-file=/var/run/tls/server/tls.crt
168168
- --traces.tls.ca-file=/var/run/ca/service-ca.crt
169+
- --traces.tls.watch-certs=true
169170
- --tls.server.cert-file=/etc/tempo-gateway/serving-certs/tls.crt
170171
- --tls.server.key-file=/etc/tempo-gateway/serving-certs/tls.key
171172
- --tls.healthchecks.server-ca-file=/etc/tempo-gateway/cabundle/service-ca.crt
172-
- --tls.healthchecks.server-name=tempo-simplest-gateway.chainsaw-replicas.svc.cluster.local
173+
- --tls.healthchecks.server-name=tempo-cmpreps-gateway.chainsaw-replicas.svc.cluster.local
173174
- --web.healthchecks.url=https://localhost:8080
174175
- --tls.client-auth-type=NoClientCert
175-
- --traces.read.endpoint=https://tempo-simplest-query-frontend.chainsaw-replicas.svc.cluster.local:16686
176+
- --traces.read.endpoint=https://tempo-cmpreps-query-frontend.chainsaw-replicas.svc.cluster.local:16686
176177
livenessProbe:
177178
failureThreshold: 10
178179
httpGet:
@@ -219,9 +220,9 @@ spec:
219220
readOnly: true
220221
subPath: tenants.yaml
221222
- mountPath: /var/run/ca
222-
name: tempo-simplest-ca-bundle
223+
name: tempo-cmpreps-ca-bundle
223224
- mountPath: /var/run/tls/server
224-
name: tempo-simplest-gateway-mtls
225+
name: tempo-cmpreps-gateway-mtls
225226
- mountPath: /etc/tempo-gateway/serving-certs
226227
name: serving-certs
227228
readOnly: true
@@ -267,39 +268,39 @@ spec:
267268
resources: {}
268269
terminationMessagePath: /dev/termination-log
269270
terminationMessagePolicy: File
270-
serviceAccount: tempo-simplest-gateway
271-
serviceAccountName: tempo-simplest-gateway
271+
serviceAccount: tempo-cmpreps-gateway
272+
serviceAccountName: tempo-cmpreps-gateway
272273
terminationGracePeriodSeconds: 30
273274
volumes:
274275
- configMap:
275276
defaultMode: 420
276277
items:
277278
- key: rbac.yaml
278279
path: rbac.yaml
279-
name: tempo-simplest-gateway
280+
name: tempo-cmpreps-gateway
280281
name: rbac
281282
- name: tenant
282283
secret:
283284
defaultMode: 420
284285
items:
285286
- key: tenants.yaml
286287
path: tenants.yaml
287-
secretName: tempo-simplest-gateway
288+
secretName: tempo-cmpreps-gateway
288289
- configMap:
289290
defaultMode: 420
290-
name: tempo-simplest-ca-bundle
291-
name: tempo-simplest-ca-bundle
292-
- name: tempo-simplest-gateway-mtls
291+
name: tempo-cmpreps-ca-bundle
292+
name: tempo-cmpreps-ca-bundle
293+
- name: tempo-cmpreps-gateway-mtls
293294
secret:
294295
defaultMode: 420
295-
secretName: tempo-simplest-gateway-mtls
296+
secretName: tempo-cmpreps-gateway-mtls
296297
- name: serving-certs
297298
secret:
298299
defaultMode: 420
299-
secretName: tempo-simplest-gateway-tls
300+
secretName: tempo-cmpreps-gateway-tls
300301
- configMap:
301302
defaultMode: 420
302-
name: tempo-simplest-gateway-cabundle
303+
name: tempo-cmpreps-gateway-cabundle
303304
name: cabundle
304305
status:
305306
readyReplicas: 1
@@ -310,46 +311,46 @@ kind: Route
310311
metadata:
311312
labels:
312313
app.kubernetes.io/component: gateway
313-
app.kubernetes.io/instance: simplest
314+
app.kubernetes.io/instance: cmpreps
314315
app.kubernetes.io/managed-by: tempo-operator
315316
app.kubernetes.io/name: tempo
316-
name: tempo-simplest-gateway
317+
name: tempo-cmpreps-gateway
317318
namespace: chainsaw-replicas
318319
ownerReferences:
319320
- apiVersion: tempo.grafana.com/v1alpha1
320321
blockOwnerDeletion: true
321322
controller: true
322323
kind: TempoStack
323-
name: simplest
324+
name: cmpreps
324325
spec:
325326
port:
326327
targetPort: public
327328
tls:
328329
termination: passthrough
329330
to:
330331
kind: Service
331-
name: tempo-simplest-gateway
332+
name: tempo-cmpreps-gateway
332333
weight: 100
333334
wildcardPolicy: None
334335
---
335336
apiVersion: v1
336337
kind: Service
337338
metadata:
338339
annotations:
339-
service.beta.openshift.io/serving-cert-secret-name: tempo-simplest-gateway-tls
340+
service.beta.openshift.io/serving-cert-secret-name: tempo-cmpreps-gateway-tls
340341
labels:
341342
app.kubernetes.io/component: gateway
342-
app.kubernetes.io/instance: simplest
343+
app.kubernetes.io/instance: cmpreps
343344
app.kubernetes.io/managed-by: tempo-operator
344345
app.kubernetes.io/name: tempo
345-
name: tempo-simplest-gateway
346+
name: tempo-cmpreps-gateway
346347
namespace: chainsaw-replicas
347348
ownerReferences:
348349
- apiVersion: tempo.grafana.com/v1alpha1
349350
blockOwnerDeletion: true
350351
controller: true
351352
kind: TempoStack
352-
name: simplest
353+
name: cmpreps
353354
spec:
354355
ports:
355356
- name: grpc-public
@@ -366,47 +367,47 @@ spec:
366367
targetPort: public
367368
selector:
368369
app.kubernetes.io/component: gateway
369-
app.kubernetes.io/instance: simplest
370+
app.kubernetes.io/instance: cmpreps
370371
app.kubernetes.io/managed-by: tempo-operator
371372
app.kubernetes.io/name: tempo
372373
type: ClusterIP
373374
---
374375
apiVersion: apps/v1
375376
kind: Deployment
376377
metadata:
377-
name: tempo-simplest-compactor
378+
name: tempo-cmpreps-compactor
378379
namespace: chainsaw-replicas
379380
status:
380381
readyReplicas: 1
381382
---
382383
apiVersion: apps/v1
383384
kind: Deployment
384385
metadata:
385-
name: tempo-simplest-distributor
386+
name: tempo-cmpreps-distributor
386387
namespace: chainsaw-replicas
387388
status:
388389
readyReplicas: 1
389390
---
390391
apiVersion: apps/v1
391392
kind: Deployment
392393
metadata:
393-
name: tempo-simplest-querier
394+
name: tempo-cmpreps-querier
394395
namespace: chainsaw-replicas
395396
status:
396397
readyReplicas: 1
397398
---
398399
apiVersion: apps/v1
399400
kind: Deployment
400401
metadata:
401-
name: tempo-simplest-query-frontend
402+
name: tempo-cmpreps-query-frontend
402403
namespace: chainsaw-replicas
403404
status:
404405
readyReplicas: 1
405406
---
406407
apiVersion: apps/v1
407408
kind: StatefulSet
408409
metadata:
409-
name: tempo-simplest-ingester
410+
name: tempo-cmpreps-ingester
410411
namespace: chainsaw-replicas
411412
status:
412413
readyReplicas: 1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: tempo.grafana.com/v1alpha1
33
kind: TempoStack
44
metadata:
5-
name: simplest
5+
name: cmpreps
66
namespace: chainsaw-replicas
77
spec:
88
storage:

0 commit comments

Comments
 (0)