-
Notifications
You must be signed in to change notification settings - Fork 39.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kubectl run add pull-policy flag to control image pull policy #30614
Conversation
ba0b7fc
to
867c49a
Compare
867c49a
to
feda040
Compare
@ymqytw Please shadow this code review. |
@adohe Thanks for the ping. Will review this today. |
@adohe Started looking at this, will pick it up tomorrow. |
@pwittrock thanks very much. |
Reviewed 3 of 3 files at r1. pkg/kubectl/run.go, line 620 [r1] (raw file):
We should either:
I am leaning towards the former - e.g. don't set the imagePullPolicy here if the flag is empty. pkg/kubectl/run.go, line 654 [r1] (raw file):
Same comment here about defaulting. pkg/kubectl/run.go, line 911 [r1] (raw file):
Why do we use a different default here than elsewhere? Why do we set client-side defaults here but not elsewhere? pkg/kubectl/run_test.go, line 40 [r1] (raw file):
If we only explicitly set the value in the config when the flag is supplied, then we can get rid of most of these changes. pkg/kubectl/cmd/run.go, line 108 [r1] (raw file):
pkg/kubectl/cmd/run.go, line 172 [r1] (raw file):
Shouldn't this return the err? Comments from Reviewable |
Review Pass Finished Review status: all files reviewed at latest revision, 6 unresolved discussions. Comments from Reviewable |
Thanks @pwittrock, I will update it. Besides this reviewable tool looks great. |
pkg/kubectl/run.go, line 911 [r1] (raw file):
|
pkg/kubectl/run.go, line 620 [r1] (raw file):
|
pkg/kubectl/cmd/run.go, line 172 [r1] (raw file):
|
Review status: all files reviewed at latest revision, 6 unresolved discussions. pkg/kubectl/run.go, line 911 [r1] (raw file):
Comments from Reviewable |
Yeah I really like the new tool. It is much more powerful and allows you to do diffs against arbitrary versions. Review status: all files reviewed at latest revision, 6 unresolved discussions. Comments from Reviewable |
feda040
to
5dbda08
Compare
5dbda08
to
ca315e3
Compare
pkg/kubectl/run.go, line 911 [r1] (raw file):
|
pkg/kubectl/cmd/run.go, line 172 [r1] (raw file):
|
@pwittrock Just update, ptal. |
Comments from Reviewable |
Review status: 0 of 3 files reviewed at latest revision, 5 unresolved discussions. Comments from Reviewable |
Reviewed 1 of 3 files at r2, 2 of 2 files at r3. Comments from Reviewable |
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks pending. Comments from Reviewable |
@adohe I thin there is a way for you to mark my comments as done in Reviewable. In the future would you see if this is possible? |
@pwittrock yes, it should be possible to do that. |
GCE e2e build/test passed for commit ca315e3. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit ca315e3. |
Automatic merge from submit-queue |
Fix #30493
@pwittrock @thockin ptal
This change is