Skip to content

Commit

Permalink
[cws-instrumentation] Nest configuration under clusterRole
Browse files Browse the repository at this point in the history
  • Loading branch information
Gui774ume committed Dec 3, 2024
1 parent 186385a commit 8c60e62
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/datadog-operator/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 2.4.0

* Add configuration to grand to the operator the necessary RBAC for the CWS Instrumentation admission controller feature in the Cluster-Agent to work.
* Add configuration to grant the necessary RBAC to the operator for the CWS Instrumentation Admission Controller feature in the Cluster-Agent.

## 2.3.0

Expand Down
3 changes: 1 addition & 2 deletions charts/datadog-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| addCWSInstrumentationRBAC | bool | `false` | Defines if the operator should be deployed with the RBAC required for the cluster-agent CWSInstrumentation feature. |
| affinity | object | `{}` | Allows to specify affinity for Datadog Operator PODs |
| apiKey | string | `nil` | Your Datadog API key |
| apiKeyExistingSecret | string | `nil` | Use existing Secret which stores API key instead of creating a new one |
| appKey | string | `nil` | Your Datadog APP key |
| appKeyExistingSecret | string | `nil` | Use existing Secret which stores APP key instead of creating a new one |
| clusterName | string | `nil` | Set a unique cluster name reporting from the Datadog Operator. |
| clusterRole | object | `{"allowReadAllResources":false}` | Set specific configuration for the cluster role |
| clusterRole | object | `{"allowCreatePodsExec":false,"allowReadAllResources":false}` | Set specific configuration for the cluster role |
| collectOperatorMetrics | bool | `true` | Configures an openmetrics check to collect operator metrics |
| containerSecurityContext | object | `{}` | A security context defines privileges and access control settings for a container. |
| datadogAgent.enabled | bool | `true` | Enables Datadog Agent controller |
Expand Down
2 changes: 1 addition & 1 deletion charts/datadog-operator/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ rules:
- list
- watch
{{- end }}
{{- if .Values.addCWSInstrumentationRBAC }}
{{- if .Values.clusterRole.allowCreatePodsExec }}
- apiGroups: [""]
resources: ["pods/exec"]
verbs: ["create"]
Expand Down
5 changes: 2 additions & 3 deletions charts/datadog-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,5 @@ clusterRole:
# If collecting CRDs in the Kubernetes Explorer this is required
allowReadAllResources: false

# addCWSInstrumentationRBAC -- Defines if the operator should be deployed with the RBAC required for the cluster-agent
# CWSInstrumentation feature.
addCWSInstrumentationRBAC: false
# allowCreatePodsExec is required for `remote_copy` mode of the CWS Instrumentation feature.
allowCreatePodsExec: false

0 comments on commit 8c60e62

Please sign in to comment.