release/mirror: Add examples for using the new mirror#6
release/mirror: Add examples for using the new mirror#6openshift-merge-robot merged 2 commits intoopenshift:masterfrom
Conversation
|
/cc @smarterclayton |
|
/cc @abhinavdahiya |
|
Temporary hold for openshift/api#384 /hold Still need to hear the question about what happens on upgrade when you have to create an ICSP instead. |
|
@smarterclayton @abhinavdahiya |
|
@smarterclayton @abhinavdahiya |
|
/hold cancel |
|
@smarterclayton @abhinavdahiya |
|
/lgtm |
|
ping @smarterclayton @mfojtik |
| // printImageContentInstructions provides exapmles to the user for using the new repository mirror | ||
| // https://github.com/openshift/installer/blob/master/docs/dev/alternative_release_image_sources.md | ||
| func printImageContentInstructions(out io.Writer, from, to string, repositories map[string]struct{}) error { | ||
| type installConfigSubsection struct { |
There was a problem hiding this comment.
Is it possible this gets called with no entries?
There was a problem hiding this comment.
If repositories had no entries it would mean the release image didn't reference any images. In this case, only one item would be printed for mirror usage, which is provided by --from.
imageContentSources:
- mirrors:
- registry.svc.ci.openshift.org/rteague-1/mirror-test
source: quay.io/openshift-release-dev/ocp-release
|
Fixed an issue with error handling and used unstructured to remove If this looks good I can squash. |
|
Looks good, once this merges can you add an e2e test in openshift/origin PR that
|
|
Please squash |
When performing a release mirror, provide examples for use in install-config.yaml (install) or ImageContentSourcePolcy (upgrade).
|
Squashed. All green. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhinavdahiya, mtnbikenc, mtrmac, smarterclayton 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 |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
Typo from 7e45752 (release/mirror: Add examples for using the new mirror, 2019-07-19, openshift#6).
Resubmission of openshift/origin#23381
When performing a release mirror, provide examples for use in
install-config.yaml (install) or ImageContentSourcePolcy (upgrade).
https://jira.coreos.com/browse/CORS-1105
Example output: