DataDog / helm-charts

Helm charts for Datadog products
Apache License 2.0
330 stars 1.01k forks source link

[CWS] Configuration options for enabling CWSInstrumentation in the `cluster-agent` #1382

Open Gui774ume opened 3 months ago

Gui774ume commented 3 months ago

What this PR does / why we need it:

This PR adds the pods/exec RBAC to the datadog-operator and the cluster-agent deployments, when the "CWS Instrumentation" feature is enabled. It also injects the cluster-agent service account name as an environment of the cluster-agent deployment in the datadog chart (so that in both deployment methods the service account name is properly injected - see https://github.com/DataDog/datadog-operator/pull/1146)

Which issue this PR fixes

This PR is the helm chart counter part of this datadog-operator PR. It is necessary to allow the "CWS Instrumentation" feature to be enabled in remote_copy mode.

Special notes for your reviewer:

Follow the steps in the datadog-operator PR to test this change.

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]