← Back to Pull requests

Allow consumer operator overrides by name #1108

Open
unknown opened this pull request with 357 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 16, 2026 15:39 UTC
Author

Replaces #1105 with the same validated change submitted from a branch in this repository rather than a fork.

Summary


  • Add optional config/operators.yaml overrides for core operators, matched by exact operator name. Preserve unspecified fields, operators and default ordering.

  • Share the resolved configuration between Ansible installation/mirroring and Python operator-versions --use-defaults reconciliation.

  • Validate partial overrides and the effective configuration before consumption, rejecting unknown names or fields, duplicate names or YAML keys, and malformed values.

  • Include an example configuration, documentation, packaged schema and regression tests. Plugin operator definitions remain unchanged.
  • Override behavior


  • An absent override file retains defaults.

  • operators: [] and name-only entries leave defaults unchanged.

  • Supplied fields replace the corresponding default fields; list-valued fields are replaced rather than appended.

  • Invalid, unreadable or dangling override files fail explicitly instead of silently falling back.
  • Validation


  • make python-linter-test python-types-test

  • uv lock --check

  • make python-unit-test: 443 passed; 92.11% total coverage.

  • uv run make -f Makefile.ci validate-json-schema validate-yaml validate-ansible validate-templates validate-tags validate-plugins

  • Package installation, wheel-from-sdist build, and installed-package resolver smoke checks outside the checkout.

  • Regression coverage exercises the Ansible loader, mirror template and Python reconciliation with the same overrides, including defaults retention, invalid-input rejection and plugin isolation.

  • Full diff review and git diff --check passed.
  • The validated feature commits are unchanged from #1105. Live-cluster installation, disconnected mirroring and end-to-end upgrades were not run.

    ---
    AI-generated. Review for accuracy.

    @maorfr requested from Slack

    Chai persona: OSAC

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

    Summary by CodeRabbit

    New Features
    Core operator settings can be selectively overridden by operator name, with unspecified fields and operators retaining their defaults. The effective configuration is validated before use during installation, reconciliation, and upgrades.
    Upgrade commands can use an explicit overrides file; upgrade playbooks use the checkout’s configuration when available.
    Bug Fixes
    Invalid, duplicate, or unknown operator overrides now produce clear errors. Invalid operator versions or channels are reported before reconciliation.
    Documentation
    * Added guidance and an example for configuring optional core operator overrides, including how configuration is selected for upgrades.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 357 lines (+267 / -90) across 4 files Reviewer: redhat-chai-bot Review duration: 1400m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.43) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 357 lines diff across 4 files
    0.43
    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
    Diff Size diff_size
    0.352
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #1108"
    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: 42.6% (MEDIUM) · Higher = larger blast radius
    42.6%
    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: 22.7% · Safe to merge
    22.7%