-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add helm option to enable kubernetesUseEndpointSlices and add endpointslices to DCA RBAC #1636
Add helm option to enable kubernetesUseEndpointSlices and add endpointslices to DCA RBAC #1636
Conversation
{{- if .Values.datadog.kubernetesUseEndpointSlices }} | ||
- apiGroups: | ||
- "discovery.k8s.io" | ||
resources: | ||
- endpointslices | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
{{- end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO it can be part of the default RBAC, because we already have it for service and endpoints
/merge |
Devflow running:
|
What this PR does / why we need it:
DataDog/datadog-agent#32104 allows the DCA to map pods to services through Kubernetes endpointSlice resources instead of endpoints. This PR exposes the config option
datadog.kubernetesUseEndpointSlices
to enable this feature.Also adds
endpointslices.discovery.k8s.io
to the DCA RBAC withget
,list
, andwatch
permissions. Only added whendatadog.kubernetesUseEndpointSlices
is enabled.Which issue this PR fixes:
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
.github/helm-docs.sh
)CHANGELOG.md
has been updatedREADME.md
make update-test-baselines
)