← Back to Pull requests

MCO: use component-scoped vSphere credentials for boot image updates #6641

Open
unknown opened this pull request with 243 lines diff across 3 files
View on GitHub
unknown unknown commented on Oct 08, 2026 19:01 UTC
Author

Summary

  • Add an MCO-specific vSphere CredentialsRequest targeting openshift-machine-config-operator/vsphere-cloud-credentials.

  • Consume the dedicated Secret instead of kube-system/vsphere-creds, using per-vCenter credential keys with no root-secret fallback.

  • Reconcile when the dedicated Secret is created, its data changes, or it is deleted.

  • Add tests for lookup, credential keys, event filtering, recovery, and manifest structure.

  • Document Manual-mode provisioning, credential rotation, and minor-upgrade preparation.
  • Validation

    Unit and focused tests, race tests, vet, repository lint, native controller build, generation/template checks, and documentation checks passed on the committed revision.

    Follow-up and limitations

    Installer automation for provisioning the MCO-specific Secret remains follow-up work. This change has not been validated against a live vSphere environment and does not claim a verified minimum vCenter permission set. The recovery unit test stubs the synchronization handler; constructor/informer wiring and production synchronization are not covered by an end-to-end recovery test.

    ---
    AI-generated. Review for accuracy.

    @rvanderp3 requested from Slack

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    New Features
    vSphere boot image updates now use credentials from the dedicated vsphere-cloud-credentials Secret in the Machine Config Operator namespace, with no fallback to the legacy Secret.
    Changes to the credentials Secret trigger boot image reconciliation. Updating credentials can resolve the related degraded condition.
    Added automatic provisioning support for vSphere credentials.
    Documentation
    Added guidance on setting up credentials, preparing for upgrades, required permissions, and recovering from controller failures.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 243 lines (+182 / -61) across 3 files Reviewer: redhat-chai-bot Review duration: 1298m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 243 lines diff across 3 files
    0.39
    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%
    46%
    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.329
    Real PR Conversation Timeline
    1 comments
    "Review active on #6641"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    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: 38.8% (MEDIUM) · Higher = larger blast radius
    38.8%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 20.7% · Safe to merge
    20.7%