Skip to content

Conversation

@dinhxuanvu
Copy link
Contributor

@dinhxuanvu dinhxuanvu commented Sep 10, 2025

The Mapped key will hold information regarding mapped images that can be used later for openshift-tests images cmd.

See #openshift/kubernetes#2447

@openshift-ci openshift-ci bot requested review from deads2k and smg247 September 10, 2025 17:05
@dinhxuanvu dinhxuanvu marked this pull request as draft September 10, 2025 17:05
@openshift-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Sep 10, 2025
@openshift-ci
Copy link

openshift-ci bot commented Sep 10, 2025

Hi @dinhxuanvu. Thanks for your PR.

I'm waiting for a openshift-eng member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 10, 2025
@dinhxuanvu dinhxuanvu marked this pull request as ready for review September 17, 2025 04:01
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 17, 2025
@openshift-ci openshift-ci bot requested a review from jupierce September 17, 2025 04:01
@dinhxuanvu
Copy link
Contributor Author

Related to openshift/kubernetes#2447
@bertinatto @smg247 PTAL

Registry string `json:"registry"`
Name string `json:"name"`
Version string `json:"version"`
Mapped *Image `json:"mapped,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory external binaries could return values with deeply-nested images, but I believe it's fine because we're only interested in the first level. The other options is to make it flat, but I can go either way.

@smg247 @stbenjam thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to elaborate on what Fabio said. If the deeply-nested struct is not acceptable, we can do flat struct like this:

type Image struct {
	Index    int         `json:"index"`
	Registry string      `json:"registry"`
	Name     string      `json:"name"`
	Version  string      `json:"version"`
	Mapped   MappedImage `json:"mapped,omitempty"`
}

type MappedImage struct {
	Index    int    `json:"index"`
	Registry string `json:"registry"`
	Name     string `json:"name"`
	Version  string `json:"version"`
}

@stbenjam
Copy link
Member

stbenjam commented Nov 4, 2025

/ok-to-test

@openshift-ci openshift-ci bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Nov 4, 2025
Registry string `json:"registry"`
Name string `json:"name"`
Version string `json:"version"`
Mapped *Image `json:"mapped,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only thing I'd suggest here is adding a comment about why one should populate this field.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@stbenjam
Copy link
Member

stbenjam commented Nov 4, 2025

/retest

Comment on lines +91 to +92
// Mapped is the image reference that this image is mirrored to by the image mirror tool.
// This field should be populated if the mirrored image reference is predetermined by the test extensions.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You dropped the field itself :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh, git did me dirty... Fixed.

The Mapped key will hold information regarding mapped images that
can be used later for openshift-tests images cmd.

Signed-off-by: Vu Dinh <[email protected]>
@stbenjam
Copy link
Member

stbenjam commented Nov 4, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 4, 2025
@stbenjam
Copy link
Member

stbenjam commented Nov 4, 2025

/approve

@openshift-ci
Copy link

openshift-ci bot commented Nov 4, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dinhxuanvu, stbenjam

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 4, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 4de6984 into openshift-eng:main Nov 4, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants