DataDog / helm-charts

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

[EDS] Add rbac for the leader election lease #1441

Closed AliDatadog closed 3 months ago

AliDatadog commented 3 months ago

What this PR does / why we need it:

Fixing this:

{"level":"ERROR","ts":"2024-07-03T11:52:48Z","logger":"klog","msg":"error retrieving resource lock datadog-agent-operator/extendeddaemonset-lock: leases.coordination.k8s.io \"extendeddaemonset-lock\" is forbidden: User \"system:serviceaccount:datadog-agent-operator:extendeddaemonset\" cannot get resource \"leases\" in API group \"coordination.k8s.io\" in the namespace \"datadog-agent-operator\"\n"}

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

Special notes for your reviewer:

Checklist

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