← Back to Pull requests

OCPBUGS-65495: include config operator ClusterRoleBinding in relatedObjects #533

Open
unknown opened this pull request with 173 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 11, 2026 05:52 UTC
Author

Summary

Add the config operator's ClusterRoleBinding to the runtime and bootstrap ClusterOperator relatedObjects lists so diagnostic collection can include this cluster-scoped resource.

Changes

  • Extract the runtime relatedObjects list into a small helper.

  • Add system:openshift:operator:openshift-config-operator to both the Go list and the initial ClusterOperator manifest.

  • Add a test requiring the exact ClusterRoleBinding reference once.

  • Add a test keeping the Go list and manifest in sync.
  • This change does not modify RBAC permissions.

    Testing

    Passed locally:

  • go test -mod=vendor ./pkg/operator -run '^TestRelatedObjects' -count=1 -v

  • CGO_ENABLED=1 make test-unit

  • make build

  • make verify

  • make verify-deps

  • Live verification on an AWS cluster built from this PR: passed. Confirmed the runtime reference and collection of the binding by oc adm inspect.
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    New Features
    The config operator’s status now includes its operator role binding among the related resources it tracks, alongside its existing configuration and namespace resources. This provides a more complete view of the resources associated with the operator.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 173 lines (+129 / -44) across 2 files Reviewer: JoelSpeed Review duration: 28738m
    All Vouch review confidence checks passed
    Residual risk 0.36 = Change Risk (0.64) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.64 · 173 lines diff across 2 files
    0.64
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.309
    Sensitive Paths sensitive_paths
    0.064
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #533"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 43.0% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 63.5% (MEDIUM) · Higher = larger blast radius
    63.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 43.0% · Lower = rushed or shallow review
    43.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 36.2% · Moderate risk
    36.2%