Skip to content

Conversation

slashpai
Copy link
Contributor

@slashpai slashpai commented Jun 5, 2025

Endpoints are deprecated in k8s 1.33, to avoid warnings and stay upto-date with upstream k8s we need to move to EndpointSlices.

This commit sets the field serviceDiscoveryRole
to EndpointSlices and updates the RBAC permissions on endpointslice resoures.

Adds --kubelet-endpointslice arg to the operator.

Related-to #2646

Description

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.
If it fixes a bug or resolves a feature request, be sure to link to that issue.

Type of change

What type of changes does your code introduce to the kube-prometheus? Put an x in the box that apply.

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Changelog entry

Please put a one-line changelog entry below. Later this will be copied to the changelog file.

CHANGE: Migrate service discovery to EndpointSlices

@slashpai slashpai requested a review from a team as a code owner June 5, 2025 08:33
@slashpai slashpai marked this pull request as draft June 5, 2025 08:40
@slashpai
Copy link
Contributor Author

slashpai commented Jun 5, 2025

Fixing the rbac

Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need also to add the --kubelet-endpointslice arg to the operator.

@slashpai slashpai marked this pull request as ready for review June 17, 2025 06:27
Endpoints are deprecated in k8s 1.33, to avoid warnings and
stay upto-date with upstream k8s we need to move to
EndpointSlices.

This commit sets the field `serviceDiscoveryRole`
to `EndpointSlices` and updates the RBAC permissions
on endpointslice resoures.

Related-to prometheus-operator#2646

Signed-off-by: Jayapriya Pai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants