Skip to content

🌱 MON-4516: Use endpointslices for metrics#2516

Merged
openshift-merge-bot[bot] merged 1 commit intooperator-framework:mainfrom
tmshort:mon-4516
Feb 19, 2026
Merged

🌱 MON-4516: Use endpointslices for metrics#2516
openshift-merge-bot[bot] merged 1 commit intooperator-framework:mainfrom
tmshort:mon-4516

Conversation

@tmshort
Copy link
Contributor

@tmshort tmshort commented Feb 18, 2026

  • Add permissions on endpointslice to Prometheus Role
  • Use serviceDiscoveryRole: EndpointSlice in ServiceMonitors

Description

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

* Add permissions on endpointslice to Prometheus Role
* Use serviceDiscoveryRole: EndpointSlice in ServiceMonitors

Signed-off-by: Todd Short <tshort@redhat.com>
Copilot AI review requested due to automatic review settings February 18, 2026 19:08
@netlify
Copy link

netlify bot commented Feb 18, 2026

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit ff299d7
🔍 Latest deploy log https://app.netlify.com/projects/olmv1/deploys/69960e21ad73d80008ade8ee
😎 Deploy Preview https://deploy-preview-2516--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR configures the OpenShift monitoring ServiceMonitor to use EndpointSlices for service discovery instead of the older Endpoints API. This aligns with Kubernetes' recommended approach for service discovery, as EndpointSlices provide better scalability and performance for large clusters.

Changes:

  • Added serviceDiscoveryRole: EndpointSlice to the olmv1 ServiceMonitor resource
  • Added RBAC permissions for discovery.k8s.io/endpointslices to the metrics monitor role

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
helm/olmv1/templates/servicemonitor-olmv1-system-metrics-monitor.yml Added serviceDiscoveryRole field to enable EndpointSlice-based service discovery
helm/olmv1/templates/rbac/role-olmv1-system-metrics-monitor-role.yml Added required RBAC permissions for accessing endpointslices resources

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Feb 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.45%. Comparing base (130c987) to head (ff299d7).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2516      +/-   ##
==========================================
- Coverage   73.21%   69.45%   -3.77%     
==========================================
  Files         102      102              
  Lines        8505     8505              
==========================================
- Hits         6227     5907     -320     
- Misses       1802     2129     +327     
+ Partials      476      469       -7     
Flag Coverage Δ
e2e 45.91% <ø> (ø)
experimental-e2e 12.72% <ø> (-40.67%) ⬇️
unit 57.89% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@oceanc80 oceanc80 left a comment

Choose a reason for hiding this comment

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

/approve

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 19, 2026
Copy link
Member

@rashmigottipati rashmigottipati left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 19, 2026
@openshift-ci
Copy link

openshift-ci bot commented Feb 19, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: oceanc80, rashmigottipati

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci
Copy link

openshift-ci bot commented Feb 19, 2026

@tmshort: /override requires failed status contexts, check run or a prowjob name to operate on.
The following unknown contexts/checkruns were given:

  • codecov/projec

Only the following failed contexts/checkruns were expected:

  • Autovalidate
  • CodeQL analysis
  • Verify PR title
  • codecov/project
  • crd-diff
  • e2e
  • experimental-e2e
  • extension-developer-e2e
  • go-apidiff
  • go-verdiff
  • goreleaser
  • lint
  • netlify/olmv1/deploy-preview
  • st2ex-e2e
  • tide
  • unit-test-basic
  • upgrade-st2st-e2e
  • verify

If you are trying to override a checkrun that has a space in it, you must put a double quote on the context.

Details

In response to this:

/override codecov/projec

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 kubernetes-sigs/prow repository.

@tmshort
Copy link
Contributor Author

tmshort commented Feb 19, 2026

/override codecov/project

@openshift-ci
Copy link

openshift-ci bot commented Feb 19, 2026

@tmshort: Overrode contexts on behalf of tmshort: codecov/project

Details

In response to this:

/override codecov/project

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 kubernetes-sigs/prow repository.

@openshift-merge-bot openshift-merge-bot bot merged commit 1ef820f into operator-framework:main Feb 19, 2026
34 of 35 checks passed
@tmshort tmshort deleted the mon-4516 branch February 19, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments