client: Allow setting image labels on Pull()#1551
Conversation
4aa6580 to
d4fd19e
Compare
Codecov Report
@@ Coverage Diff @@
## master #1551 +/- ##
=======================================
Coverage 42.36% 42.36%
=======================================
Files 24 24
Lines 3368 3368
=======================================
Hits 1427 1427
Misses 1612 1612
Partials 329 329Continue to review full report at Codecov.
|
AkihiroSuda
left a comment
There was a problem hiding this comment.
LGTM, should we have the same stuff for Import() as well?
|
@AkihiroSuda probably, yes. Will add it, thanks. |
There was a problem hiding this comment.
Couldn't this be part of the Opts?
There was a problem hiding this comment.
I thought about it for Import.
Here, I found it weird to have it as part of a type called RemoteOpts, I guess I can rename it to PullOpts, lemme take a pass at it
There was a problem hiding this comment.
@crosbymichael done. Lemme know if you prefer it that way, then I'll squash the commits.
There was a problem hiding this comment.
Could we just add Labels to RemoteContext? Many of the values on there are already pull specific, I don't think it makes sense to split the options just for the labels without splitting them all. We had a unified push/pull type to keep the options simpler and used the WithPull* nomenclature to differentiate. The fact that this necessitates WithPullRemoteOpt indicates to me that it should not exist.
556324b to
b8349d8
Compare
|
several of your |
b8349d8 to
1b6e178
Compare
|
@estesp yes, just noticed, it's should be fixed 😇 |
1b6e178 to
83cad51
Compare
|
rebased and squashed |
There was a problem hiding this comment.
is this a stray m or does it mean something? 😇
There was a problem hiding this comment.
dang, yes it is. Probably a failed emacs command 😅
Thanks for noticing
83cad51 to
a0e1d21
Compare
There was a problem hiding this comment.
Clarify that this only applies to the image record and not transitive resources.
|
LGTM I'm assuming this is to avoid the transactional problems of labels after pull. |
Signed-off-by: Kenfe-Mickael Laventure <[email protected]>
a0e1d21 to
df82159
Compare
|
LGTM |
…9.0-rc.4 vendor: kubernetes 1.19.0 rc.4 and dependencies
Signed-off-by: Kenfe-Mickael Laventure [email protected]