Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bit weird for
daemon.Write
to take atarball.Options
, it leaks a bit of the underlying abstraction.Would it make sense to define a daemon Option for progress and convert it internally into the tarball Option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that remote.Write has the same problem, due to WriteOptions being added on the wrong level
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But the right thing to do would probably be to add a daemon.WithProgress, instead of tarball.WithProgress
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah exactly. #967 defines a new
remote.WithProgress
. In the case ofdaemon
, it might end up usingtarball.WithProgress
underneath, but it feels weird to have that leak into its API.There isn't a
daemon.WriteOption
type yet, but I think we could add one, and adaemon.WithProgress
that implements it, that converts to atarball.WriteOption
internally.@jonjohnsonjr wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise it seems to be working, of course we might end up using tarball anyway for Podman support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've stomped on this PR a little bit by making everything just
daemon.Option
(sorry), but it shouldn't be too hard to do this now by just translating thedaemon.WithProgress
into atarball.WithProgress
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to fork everything anyway, to make a
podman
matching thedaemon
in the API.https://github.com/kubernetes/minikube/pull/11063/files#diff-fa213d52c815c8c5520c1a6564d404ecf1d5ea5f3acf11dfd86a406bab4a4d3a