diff --git a/charts/datadog-operator/templates/clusterrole.yaml b/charts/datadog-operator/templates/clusterrole.yaml index 1b90e330a..b06ec0a29 100644 --- a/charts/datadog-operator/templates/clusterrole.yaml +++ b/charts/datadog-operator/templates/clusterrole.yaml @@ -794,5 +794,20 @@ rules: - patch - update {{- end }} +{{- if .Values.orchestratorExplorer.listAndWatchAll }} +- apiGroups: + - '*' + resources: + - '*' + verbs: + - list + - watch +- apiGroups: + - '*' + resources: + - '*' + verbs: + - list + - watch +{{- end }} {{- end }} - diff --git a/charts/datadog-operator/values.yaml b/charts/datadog-operator/values.yaml index fbd4339e9..8064bfc49 100644 --- a/charts/datadog-operator/values.yaml +++ b/charts/datadog-operator/values.yaml @@ -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