Skip to content

Bug 1712637: use fallback when must-gather imagestream not available#22974

Merged
openshift-merge-robot merged 1 commit into
openshift:masterfrom
sanchezl:oc_adm_must-gather_image
Jun 1, 2019
Merged

Bug 1712637: use fallback when must-gather imagestream not available#22974
openshift-merge-robot merged 1 commit into
openshift:masterfrom
sanchezl:oc_adm_must-gather_image

Conversation

@sanchezl
Copy link
Copy Markdown
Contributor

The fallback image was only being used if the must-gather imagestream was available, but did not resolve.

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 30, 2019
@openshift-ci-robot openshift-ci-robot requested review from enj and soltysh May 30, 2019 19:57
@sanchezl sanchezl changed the title use fallback when must-gather imagestream not available Bug 1712637: use fallback when must-gather imagestream not available May 30, 2019
@tnozicka
Copy link
Copy Markdown
Contributor

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 oc adm release info registry.svc.ci.openshift.org/ocp/release:4.1.0-0.ci-2019-05-16-111356 --image-for=must-gatheror take it as a flag.

}
if image, ok := util.ResolveLatestTaggedImage(imageStream, "latest"); ok {
return image, nil
} else {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: project style excludes the else

@deads2k
Copy link
Copy Markdown
Contributor

deads2k commented May 31, 2019

I would hope this finds the image like oc adm release info registry.svc.ci.openshift.org/ocp/release:4.1.0-0.ci-2019-05-16-111356 --image-for=must-gatheror take it as a flag.

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

hold for nit, self-tag after.

@openshift-ci-robot openshift-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. labels May 31, 2019
@openshift-ci-robot
Copy link
Copy Markdown

[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

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-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 31, 2019
@sanchezl sanchezl force-pushed the oc_adm_must-gather_image branch from 5ce05e0 to 73703b3 Compare May 31, 2019 20:26
@openshift-ci-robot
Copy link
Copy Markdown

New changes are detected. LGTM label has been removed.

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label May 31, 2019
@sanchezl sanchezl added lgtm Indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels May 31, 2019
@openshift-merge-robot openshift-merge-robot merged commit 94d38f7 into openshift:master Jun 1, 2019
@mfojtik
Copy link
Copy Markdown
Contributor

mfojtik commented Jun 3, 2019

/cherrypick release-4.1

For https://bugzilla.redhat.com/show_bug.cgi?id=1712637 (it is 4.1 BZ)

@openshift-cherrypick-robot
Copy link
Copy Markdown

@mfojtik: new pull request created: #23001

Details

In response to this:

/cherrypick release-4.1

For https://bugzilla.redhat.com/show_bug.cgi?id=1712637 (it is 4.1 BZ)

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.

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. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants