Skip to content

Conversation

@TomSweeneyRedHat
Copy link
Member

Signed-off-by: TomSweeneyRedHat tsweeney@redhat.com

Add the transport "docker://" to the destination image if it fails and there's no transport specified. Then retry the lookup and finally fail if still not found. Also renamed the variable DefaultRegistry to DefaultTransport and replaced a few "docker://" in the code with the variable.

@mheon
Copy link
Member

mheon commented Nov 14, 2017

@TomSweeneyRedHat We have a default transport in runtime.go (RuntimeConfig.ImageDefaultTransport) right now that can be set by the user, but it's not hooked into anything right now - can you either use that instead, or use that to set the value for DefaultTransport in runtime_img.go?

@TomSweeneyRedHat
Copy link
Member Author

@mheon I'd forgotten about the RuntimeConfig.ImageDefaultTransport . Will see what I can do with it, thanks!

Copy link
Member

Choose a reason for hiding this comment

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

As long as you are at it, line 54ish in runtime.go has a struct that would benefit from this change too.

Copy link
Member

Choose a reason for hiding this comment

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

@TomSweeneyRedHat Could you fix runtime.go to use this constant.

Copy link
Member

Choose a reason for hiding this comment

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

Depending on how you want to handle this @TomSweeneyRedHat , there is a slice for transports and we have a util.StringInSlice which takes a string and slice and returns a book depending on whether the string can be found in slice.

Copy link
Member

Choose a reason for hiding this comment

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

or maybe it is time we break down and make an image-related function that is something like hasTransport ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I've made hasTransport, the stringinslice didn't fit as I've only a simple string at this point.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ugh, looks like I've a merge mess. Will clean up tomorrow.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed the merge mess.

Copy link
Member Author

@TomSweeneyRedHat TomSweeneyRedHat left a comment

Choose a reason for hiding this comment

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

I think I've a mangled merge mess in runtime_img.go, will retry in the morning.

libpod/util.go Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Why are you removing FuncTimer?

Copy link
Member Author

@TomSweeneyRedHat TomSweeneyRedHat Nov 15, 2017

Choose a reason for hiding this comment

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

Apparently my merge dance wasn't as smooth as it should have been. I didn't mean to remove that, back to dancing.

Copy link
Member

Choose a reason for hiding this comment

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

Does the HasTransport function need to be public? I don't think it's that useful to people outside of libpod.

@TomSweeneyRedHat
Copy link
Member Author

@mheon, thought I saw a comment about HasTransport being global. I can't find the comment, but have changed that in the code. You're probably right, I don't think it will be needed outside of the libpod.

@mheon
Copy link
Member

mheon commented Nov 15, 2017

LGTM

@TomSweeneyRedHat
Copy link
Member Author

Test failures aren't lining up, going to close and reopen to force a test.

@rhatdan
Copy link
Member

rhatdan commented Nov 16, 2017

@TomSweeneyRedHat gofmt errors.

@TomSweeneyRedHat
Copy link
Member Author

This PR hates me, looks like I've run into Travis environment issues.

@TomSweeneyRedHat
Copy link
Member Author

/test all

@TomSweeneyRedHat
Copy link
Member Author

OK, going to close and reopen to retest. Picked up a 503 on an unrelated test.

@TomSweeneyRedHat
Copy link
Member Author

Finally, all happy green buttons!

@rhatdan
Copy link
Member

rhatdan commented Nov 17, 2017

@rh-atomic-bot r+

@rh-atomic-bot
Copy link
Collaborator

📌 Commit c45706b has been approved by rhatdan

@rh-atomic-bot
Copy link
Collaborator

⌛ Testing commit c45706b with merge 2858100...

@rh-atomic-bot
Copy link
Collaborator

💔 Test failed - status-papr

@rhatdan
Copy link
Member

rhatdan commented Nov 17, 2017

@rh-atomic-bot retry

@rh-atomic-bot
Copy link
Collaborator

⌛ Testing commit c45706b with merge ed6f58b...

rh-atomic-bot pushed a commit that referenced this pull request Nov 17, 2017
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #42
Approved by: rhatdan
@rh-atomic-bot
Copy link
Collaborator

💔 Test failed - status-papr

@mheon
Copy link
Member

mheon commented Nov 17, 2017

I think the CI PR that merged last night means this is no longer passing - @TomSweeneyRedHat can you rebase and repush to retrigger CI and see what's going on?

@TomSweeneyRedHat
Copy link
Member Author

@mheon will do and arg, this is a real problem child PR!

@TomSweeneyRedHat
Copy link
Member Author

For some reason Red Hat testing didn't like the if/else in hasTransports, have changed it to just a straight return. It passed prior, perhaps new testing in place for the builds?

@rh-atomic-bot
Copy link
Collaborator

☔ The latest upstream changes (presumably #26) made this pull request unmergeable. Please resolve the merge conflicts.

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
@TomSweeneyRedHat
Copy link
Member Author

@rhatdan my problem child PR is finally green, can we merge this?

@rhatdan
Copy link
Member

rhatdan commented Nov 27, 2017

@rh-atomic-bot r+

@rh-atomic-bot
Copy link
Collaborator

📌 Commit 6993881 has been approved by rhatdan

@rh-atomic-bot
Copy link
Collaborator

⌛ Testing commit 6993881 with merge dfe6038...

@rh-atomic-bot
Copy link
Collaborator

💥 Test timed out

@rhatdan
Copy link
Member

rhatdan commented Nov 28, 2017

@rh-atomic-bot retry

@rh-atomic-bot
Copy link
Collaborator

⌛ Testing commit 6993881 with merge d43f786...

@rh-atomic-bot
Copy link
Collaborator

☀️ Test successful - status-papr
Approved by: rhatdan
Pushing d43f786 to master...

@TomSweeneyRedHat TomSweeneyRedHat deleted the dev/tsweeney/transport_push branch November 28, 2017 13:15
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 28, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants