Skip to content

CNTRLPLANE-3584: Add kube-scheduler ServiceMonitor with CA-signed serving certs - #8489

Merged
openshift-merge-bot[bot] merged 2 commits into
openshift:mainfrom
dhgautam99:create-kube-scheduler-servicemonitor
Jun 9, 2026
Merged

openshift-merge-bot[bot] merged 2 commits into
openshift:mainfrom
dhgautam99:create-kube-scheduler-servicemonitor

test(CPO): add unit tests and fixtures for kube-scheduler ServiceMonitor

e994412
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jun 9, 2026 in 0s

41.44% (+0.75%) compared to fce95fc

View this Pull Request on Codecov

41.44% (+0.75%) compared to fce95fc

Details

Codecov Report

❌ Patch coverage is 46.34146% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 41.44%. Comparing base (fce95fc) to head (e994412).
⚠️ Report is 90 commits behind head on main.

Files with missing lines Patch % Lines
support/metrics/sets.go 0.00% 14 Missing ⚠️
.../hostedcontrolplane/v2/kube_scheduler/component.go 0.00% 4 Missing ⚠️
...ostedcontrolplane/hostedcontrolplane_controller.go 50.00% 2 Missing and 1 partial ⚠️
...or/controllers/hostedcontrolplane/manifests/pki.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8489      +/-   ##
==========================================
+ Coverage   40.69%   41.44%   +0.75%     
==========================================
  Files         755      758       +3     
  Lines       93373    93689     +316     
==========================================
+ Hits        37994    38830     +836     
+ Misses      52646    52137     -509     
+ Partials     2733     2722      -11     
Files with missing lines Coverage Δ
...or/controllers/hostedcontrolplane/pki/scheduler.go 100.00% <100.00%> (ø)
...edcontrolplane/v2/kube_scheduler/servicemonitor.go 100.00% <100.00%> (ø)
...or/controllers/hostedcontrolplane/manifests/pki.go 0.00% <0.00%> (ø)
...ostedcontrolplane/hostedcontrolplane_controller.go 45.71% <50.00%> (+0.68%) ⬆️
.../hostedcontrolplane/v2/kube_scheduler/component.go 26.08% <0.00%> (+26.08%) ⬆️
support/metrics/sets.go 2.25% <0.00%> (-0.10%) ⬇️

... and 48 files with indirect coverage changes

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