Skip to content

Commit c596b9a

Browse files
committed
Update operator clusterrole
* `secrets`: Add TLS support to auto-instrumentation [#3338](open-telemetry/opentelemetry-operator#3338) * `targetallocators`: Generate only TargetAllocator CR from Collector CR [#3402](open-telemetry/opentelemetry-operator#3402)
1 parent 3c7f10d commit c596b9a

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

charts/opentelemetry-operator/examples/feature-gates/rendered/clusterrole.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,26 @@ rules:
216216
- patch
217217
- update
218218
- watch
219+
- apiGroups:
220+
- opentelemetry.io
221+
resources:
222+
- targetallocators
223+
verbs:
224+
- create
225+
- delete
226+
- get
227+
- list
228+
- patch
229+
- update
230+
- watch
231+
- apiGroups:
232+
- opentelemetry.io
233+
resources:
234+
- targetallocators/status
235+
verbs:
236+
- get
237+
- patch
238+
- update
219239
- apiGroups:
220240
- cert-manager.io
221241
resources:

charts/opentelemetry-operator/templates/clusterrole.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ rules:
9292
resources:
9393
- nodes
9494
- namespaces
95+
- secrets
9596
verbs:
9697
- get
9798
- list
@@ -236,6 +237,28 @@ rules:
236237
- update
237238
- watch
238239
{{- if .Values.manager.featureGatesMap }}
240+
{{- if ".Values.manager.featureGatesMap.operator.targetAllocatorCR" }}
241+
- apiGroups:
242+
- opentelemetry.io
243+
resources:
244+
- targetallocators
245+
verbs:
246+
- create
247+
- delete
248+
- get
249+
- list
250+
- patch
251+
- update
252+
- watch
253+
- apiGroups:
254+
- opentelemetry.io
255+
resources:
256+
- targetallocators/status
257+
verbs:
258+
- get
259+
- patch
260+
- update
261+
{{- end }}
239262
{{- if ".Values.manager.featureGatesMap.operator.targetallocator.mtls" }}
240263
- apiGroups:
241264
- cert-manager.io

0 commit comments

Comments
 (0)