-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Make Deploy flags more relevant #2018
Make Deploy flags more relevant #2018
Conversation
Let me know if |
Codecov Report
@@ Coverage Diff @@
## master #2018 +/- ##
==========================================
+ Coverage 55.72% 55.77% +0.05%
==========================================
Files 173 173
Lines 7503 7512 +9
==========================================
+ Hits 4181 4190 +9
Misses 2931 2931
Partials 391 391
Continue to review full report at Codecov.
|
I think --tail still makes sense for |
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.
Good cleanup :D except for --tail
it LGTM!
cmd.Flags().BoolVar(&opts.Force, "force", false, "Recreate kubernetes resources if necessary for deployment (default: false, warning: might cause downtime!)") | ||
cmd.Flags().StringArrayVarP(&opts.CustomLabels, "label", "l", nil, "Add custom labels to deployed objects. Set multiple times for multiple labels.") | ||
} | ||
|
||
func AddRunDeployOnlyFlags(cmd *cobra.Command) { |
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'm starting to get really lost in this naming scheme. What does it mean that RunDeployOnly
and how does it differ from RunDeployCommon
? I'm starting to think that we should just add commands=[]string{"run", "dev", "deploy"}
annotation to the flags somehow...:)
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.
yes. its a good idea to add scope annotation to flags. Its kind of confusing right now. Especially when they call each other.
When rewriting
skaffold deploy
i realizedskaffold deploy
has--tail
option which is not required.skaffold run
uses--tail
Some of the
skaffold deploy
flags are not relevant like--insecure-registries
,--no-prune
.Please let me know if this is incorrect.
Please see https://github.com/GoogleContainerTools/skaffold/compare/master...tejal29:make_sane_deploy_flags?expand=1#diff-2e110939e227b787655acb75b7eea64f to see the flag difference.
Flags removed: