Skip to content

Commit

Permalink
[Orch] Add additional permissions for operator to view CRDs
Browse files Browse the repository at this point in the history
When using the Operator, we need additional permissions for CRDs. We
need to allow the cluster agent to view these custom resources and in
order to do that the operator needs permission to see them. This is
currently disabled by default
  • Loading branch information
JLineaweaver committed Oct 23, 2024
1 parent 4b12bb1 commit 61900b4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
17 changes: 16 additions & 1 deletion charts/datadog-operator/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -794,5 +794,20 @@ rules:
- patch
- update
{{- end }}
{{- if .Values.orchestratorExplorer.listAndWatchAll }}
- apiGroups:
- '*'
resources:
- '*'
verbs:
- list
- watch
- apiGroups:
- '*'
resources:
- '*'
verbs:
- list
- watch
{{- end }}
{{- end }}

5 changes: 5 additions & 0 deletions charts/datadog-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,8 @@ livenessProbe:
# timeoutSeconds: 1
# successThreshold: 1
# failureThreshold: 3

# orchestratorExplorer -- Set specific configuration for orchestratorExplorer in the operator
orchestratorExplorer:
#listAndWatchAll is required to allow the operator to view all custom resources
listAndWatchAll: false

0 comments on commit 61900b4

Please sign in to comment.