Skip to content

Commit

Permalink
Update operator clusterrole
Browse files Browse the repository at this point in the history
* `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)
  • Loading branch information
araiu committed Dec 6, 2024
1 parent 0150589 commit ef21865
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,26 @@ rules:
- patch
- update
- watch
- apiGroups:
- opentelemetry.io
resources:
- targetallocators
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- opentelemetry.io
resources:
- targetallocators/status
verbs:
- get
- patch
- update
- apiGroups:
- cert-manager.io
resources:
Expand Down
23 changes: 23 additions & 0 deletions charts/opentelemetry-operator/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ rules:
resources:
- nodes
- namespaces
- secrets
verbs:
- get
- list
Expand Down Expand Up @@ -236,6 +237,28 @@ rules:
- update
- watch
{{- if .Values.manager.featureGatesMap }}
{{- if ".Values.manager.featureGatesMap.operator.targetAllocatorCR" }}
- apiGroups:
- opentelemetry.io
resources:
- targetallocators
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- opentelemetry.io
resources:
- targetallocators/status
verbs:
- get
- patch
- update
{{- end }}
{{- if ".Values.manager.featureGatesMap.operator.targetallocator.mtls" }}
- apiGroups:
- cert-manager.io
Expand Down

0 comments on commit ef21865

Please sign in to comment.