-
Notifications
You must be signed in to change notification settings - Fork 265
MON-4432: Add EndpointSlice support to DaemonSet ServiceMonitors #2839
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
base: master
Are you sure you want to change the base?
Conversation
Configure all ServiceMonitor objects for DaemonSet workloads to use EndpointSlice for service discovery instead of the default Endpoints API, improving scalability and performance for monitoring DaemonSet pods. Changes: - Add serviceDiscoveryRole: EndpointSlice to ServiceMonitor specs - Add discovery.k8s.io/endpointslices RBAC permissions to prometheus-k8s Roles Signed-off-by: Jayapriya Pai <janantha@redhat.com>
|
@slashpai: This pull request references MON-4432 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the sub-task to target the "4.21.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
WalkthroughThis change adds EndpointSlice-based service discovery support across multiple Prometheus monitoring configurations. ServiceMonitor resources are updated with Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to 📒 Files selected for processing (5)
🧰 Additional context used📓 Path-based instructions (1)**⚙️ CodeRabbit configuration file
Files:
🔇 Additional comments (5)
Comment |
|
/skip |
simonpasquier
left a comment
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.
/lgtm
Let's see if the e2e failures are caused by the PR but it looks ok to me.
|
/retest-required |
1 similar comment
|
/retest-required |
|
/test e2e-aws-ovn-windows |
1 similar comment
|
/test e2e-aws-ovn-windows |
|
/retest-required |
|
@slashpai: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
windows test failure looks legit we might need to update in https://github.com/openshift/windows-machine-config-operator as well IIUC |
|
@slashpai correct! |
|
openshift/windows-machine-config-operator#3583 is merged lets retest /retest-required |
|
/hold cancel |
ricky-rav
left a comment
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.
/LGTM
|
@ricky-rav Thank you for the review, I think it needs approved label |
|
@kyrtapz PTAL |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kyrtapz, ricky-rav, simonpasquier, slashpai The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
I am trying to add a e2e test openshift/origin#30627 |
Add a test to verify that network DaemonSet ServiceMonitor targets are correctly discovered. This validates the changes from openshift/cluster-network-operator#2839 which migrates DaemonSet ServiceMonitors to use EndpointSlice instead of the Endpoints API. Signed-off-by: Jayapriya Pai <janantha@redhat.com> Assisted-By: Cursor AI
|
/testwith openshift/origin#30627 |
Configure all ServiceMonitor objects for DaemonSet workloads to use EndpointSlice for service discovery instead of the default Endpoints API, improving scalability and performance for monitoring DaemonSet pods.
Changes:
Related Epic: https://issues.redhat.com/browse/MON-4216
cc @simonpasquier
/hold to test changes