← Back to Pull requests

fix: render RHOAI Trainer manifests into redhat-ods-applications #319

Closed
unknown closed this pull request without merging on Oct 21, 2026 11:41 UTC
View on GitHub
unknown unknown commented on Oct 21, 2026 07:58 UTC
Author

What this PR does / why we need it:

The rhoai overlay pinned namespace: opendatahub, so the ServiceMonitor's
tlsConfig.serverName was rendered as
kubeflow-trainer-controller-manager.opendatahub.svc. When the platform
operator deploys Trainer into the redhat-ods-applications applications
namespace, the controller's serving certificate is issued for
kubeflow-trainer-controller-manager.redhat-ods-applications.svc, so the
Prometheus scrape fails TLS verification and the target stays down
(TestTrainerPrometheusScrape in opendatahub-io/distributed-workloads fails):

Get "https://10.128.0.209:8443/metrics": tls: failed to verify certificate:
x509: certificate is valid for kubeflow-trainer-controller-manager.redhat-ods-applications.svc,
not kubeflow-trainer-controller-manager.opendatahub.svc

Changes:

  • Render the overlay directly into redhat-ods-applications, matching the

  • convention used by other RHOAI component overlays (e.g.
    data-science-pipelines-operator), so serverName matches the serving
    certificate.
  • Derive the trainer-tls-profile ClusterRoleBinding subject namespace from

  • the kustomization namespace via a replacement instead of the hardcoded
    opendatahub value, so it follows the target namespace on render.
  • Use APPLICATIONS_NAMESPACE consistently in Makefile.rhai

  • deploy-rhoai/undeploy-rhoai (previously hardcoded opendatahub even
    though the target applies the kustomization render, which takes its
    namespace from the kustomization) and default it to
    redhat-ods-applications.

    Verified by rendering the overlay: serverName is
    kubeflow-trainer-controller-manager.redhat-ods-applications.svc, the
    ClusterRoleBinding subject namespace is redhat-ods-applications, and no
    rendered resource retains namespace: opendatahub.

    Which issue(s) this PR fixes _(optional, in Fixes #<issue number>, #<issue number>, ... format, will close the issue(s) when PR gets merged)_:
    Fixes #

    Checklist:

  • Docs included if any changes are user facing
  • 🤖 Generated with Claude Code

    Diff: 268 lines (+201 / -67) across 3 files Reviewer: abhijeet-dhumal Review duration: 222m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 268 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.335
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #319"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 39.4% (MEDIUM) · Higher = larger blast radius
    39.4%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 15.6% · Safe to merge
    15.6%