Add EndpointSlice RBAC and KubeVirtCI coverage #700
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 217 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.322
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #700"
general
weight: 0.35
qinqon
What this PR does / why we need it
Latest KubeVirtCI Prometheus deployments (KUBEVIRTCI_TAG=
2609300856-4bec1cc7) are using EndpointSlice service discovery need permission to readdiscovery.k8s.io/endpointslicesin the KubeMacPool namespace. Without that permission, Prometheus cannot discover KubeMacPool's metrics endpoint, sokmp_mac_collisionsis not scraped and theKubemacpoolMACCollisionDetectedalert cannot fire.This PR:
get,list, andwatchaccess todiscovery.k8s.io/endpointslices.services,endpoints, andpodsresources.2609300856-4bec1cc7, which uses Prometheus EndpointSlice discovery and exercises this permission path.Validation
make generate-deploy generate-testGOFLAGS=-mod=vendor go test ./config/releasegit diff --checkFollow-up
CNAO should bump its KubeMacPool dependency to a commit containing this fix.
Release note
``
release-note
``Fix Prometheus metric discovery when using Kubernetes EndpointSlice service discovery.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Updates
Updated the default KubeVirt CI image version. An explicitly configured version still takes precedence.
Monitoring
Prometheus monitoring roles can now read endpoint slices, supporting service discovery across monitoring configurations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->