Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sohankunkerkar
Copy link
Member

@sohankunkerkar sohankunkerkar commented Sep 12, 2023

The current implementation of image names exhibits unpredictable behavior for users, as it relies on the order in which names were pulled, which is not guaranteed by the API. To address this issue, this commit proposes processing all names in image.Names through the filter.

What type of PR is this?

/kind bug

What this PR does / why we need it:

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Fixed image name consistency for more predictable behavior with pinned images.

The current implementation of image names exhibits unpredictable behavior
for users, as it relies on the order in which names were pulled, which is
not guaranteed by the API. To address this issue, this commit proposes
processing all names in image.Names through the filter.

Signed-off-by: Sohan Kunkerkar <[email protected]>
@openshift-ci openshift-ci bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note-none Denotes a PR that doesn't merit a release note. labels Sep 12, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 12, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added kind/bug Categorizes issue or PR as related to a bug. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Sep 12, 2023
@sohankunkerkar
Copy link
Member Author

related to #6862 (comment)

@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

Merging #7299 (4ac3aee) into main (1bfa8d3) will decrease coverage by 0.01%.
The diff coverage is 50.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7299      +/-   ##
==========================================
- Coverage   49.23%   49.23%   -0.01%     
==========================================
  Files         136      136              
  Lines       15622    15626       +4     
==========================================
+ Hits         7692     7693       +1     
- Misses       7018     7020       +2     
- Partials      912      913       +1     

@sohankunkerkar
Copy link
Member Author

cc @mtrmac

Copy link
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

LGTM, this looks reasonable (disclaimer: I know a bit about c/storage, quite little about CRI-O).

Thanks!

@sohankunkerkar sohankunkerkar marked this pull request as ready for review September 12, 2023 17:27
@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 12, 2023
@haircommander
Copy link
Member

/approve

can you add a release-note about this?

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 12, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: haircommander, sohankunkerkar

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:

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-none Denotes a PR that doesn't merit a release note. labels Sep 12, 2023
@sohankunkerkar
Copy link
Member Author

/retest

@sohankunkerkar
Copy link
Member Author

@cri-o/cri-o-maintainers PTAL

@haircommander
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 13, 2023
@openshift-merge-robot openshift-merge-robot merged commit 8c41704 into cri-o:main Sep 13, 2023
@sohankunkerkar sohankunkerkar deleted the fix-image-pinning branch September 14, 2023 14:35
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. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants