Bug 1712637: use fallback when must-gather imagestream not available#22974
Conversation
|
I don't think hard coding a registry will play well in the future. (different registries, disconnected envs) Also a fallback to latest might mean several releases of skew. I would hope this finds the image like |
| } | ||
| if image, ok := util.ResolveLatestTaggedImage(imageStream, "latest"); ok { | ||
| return image, nil | ||
| } else { |
There was a problem hiding this comment.
nit: project style excludes the else
It does if someone really wants to. This is a good attempt at "do what the user wants even on very dead clusters." /lgtm hold for nit, self-tag after. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, sanchezl The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
5ce05e0 to
73703b3
Compare
|
New changes are detected. LGTM label has been removed. |
|
/cherrypick release-4.1 For https://bugzilla.redhat.com/show_bug.cgi?id=1712637 (it is 4.1 BZ) |
|
@mfojtik: new pull request created: #23001 DetailsIn response to this:
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/test-infra repository. |
The fallback image was only being used if the
must-gatherimagestream was available, but did not resolve.