← Back to Pull requests

Add ImageDigestMirrors field to ClusterRegistryConfig #1143

Merged
nimrodshn merged 5 files (123 lines) on Feb 20, 2026 19:40 UTC
View on GitHub
nimrodshn nimrodshn commented on Feb 16, 2026 12:13 UTC
Author

No description provided by author.

Diff: 123 lines (+105 / -18) across 5 files Reviewer: miguelsorianod Review duration: 6207m
All Vouch review confidence checks passed
Residual risk 0.06 = Change Risk (0.61) × (1 − Review Confidence (0.91)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.61 · 123 lines diff across 5 files
0.61
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 5 substantive comment(s)
0.89
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
90%
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.288
Sensitive Paths sensitive_paths
0.061
Empty Description empty_description
0.060
Real PR Conversation Timeline
9 items
machi1990 machi1990 commented on Feb 19, 2026 08:24 UTC
Contributor

/lgtm
/approve

miguelsorianod miguelsorianod commented on code on Feb 19, 2026 11:59 UTC
Code Review
model/aro_hcp/v1alpha1/cluster_registry_config_type.model:1
@@ -50,6 +50,8 @@ struct ClusterRegistryConfig {
 	// whether or not to allow insecure access). It does not contain configuration for the
 	// internal cluster registry.
 	RegistrySources RegistrySources
+	// ImageDigestMirrors contains the configuration for the image mirroring based on digest.
+	ImageDigestMirrors []ImageMirror

Is it readonly? if not, is it mandatory? if not, what's the default?

miguelsorianod miguelsorianod commented on code on Feb 19, 2026 12:00 UTC
Code Review
model/aro_hcp/v1alpha1/cluster_registry_config_type.model:1
@@ -50,6 +50,8 @@ struct ClusterRegistryConfig {
 	// whether or not to allow insecure access). It does not contain configuration for the
 	// internal cluster registry.
 	RegistrySources RegistrySources
+	// ImageDigestMirrors contains the configuration for the image mirroring based on digest.
+	ImageDigestMirrors []ImageMirror

Without context/familiarity with it it's hard to evaluate the changes without any description / context.

Could you give a bit of context about the PR and relevant information to be able to understand it?

nimrodshn nimrodshn commented on code on Feb 19, 2026 12:08 UTC
Code Review
model/aro_hcp/v1alpha1/cluster_registry_config_type.model:1
@@ -50,6 +50,8 @@ struct ClusterRegistryConfig {
 	// whether or not to allow insecure access). It does not contain configuration for the
 	// internal cluster registry.
 	RegistrySources RegistrySources
+	// ImageDigestMirrors contains the configuration for the image mirroring based on digest.
+	ImageDigestMirrors []ImageMirror

@miguelsorianod
We are exposing a field to support this feature: https://docs.redhat.com/en/documentation/openshift_container_platform/4.13/html/config_apis/imagedigestmirrorset-config-openshift-io-v1

I've added more documentation. I hope this is OK now 🙏

nimrodshn nimrodshn commented on code on Feb 19, 2026 12:08 UTC
Code Review
model/aro_hcp/v1alpha1/cluster_registry_config_type.model:1
@@ -50,6 +50,8 @@ struct ClusterRegistryConfig {
 	// whether or not to allow insecure access). It does not contain configuration for the
 	// internal cluster registry.
 	RegistrySources RegistrySources
+	// ImageDigestMirrors contains the configuration for the image mirroring based on digest.
+	ImageDigestMirrors []ImageMirror

No, not readonly. nor mandatory. Default is nil.

I will add all of these as description.

vkareh vkareh commented on Feb 20, 2026 19:35 UTC
Contributor

/approve

openshift-ci[bot] openshift-ci[bot] commented on Feb 20, 2026 19:35 UTC
Bot

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: <a href="https://github.com/openshift-online/ocm-api-model/pull/1143#issuecomment-3925532137" title="Approved">machi1990</a>, <a href="https://github.com/openshift-online/ocm-api-model/pull/1143#" title="Author self-approved">nimrodshn</a>, <a href="https://github.com/openshift-online/ocm-api-model/pull/1143#issuecomment-3936724636" title="Approved">vkareh</a>

The full list of commands accepted by this bot can be found here.

The pull request process is described here

<details >
Needs approval from an approver in each of these files:

  • ~~OWNERS~~ [vkareh]
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":[]} -->

    vkareh vkareh commented on Feb 20, 2026 19:36 UTC
    Contributor

    /lgtm

    Assignees
    nimrodshn nimrodshn
    Labels
    risk: low confidence: 90.6% 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: 60.9% (MEDIUM) · Higher = larger blast radius
    60.9%
    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: 90.6% · Lower = rushed or shallow review
    90.6%
    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: 5.7% · Safe to merge
    5.7%