Skip to content
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

fix show some option in skaffold delete #1995 #1997

Merged
merged 2 commits into from
Apr 23, 2019

Conversation

u5surf
Copy link
Contributor

@u5surf u5surf commented Apr 22, 2019

fixes #1995

@codecov-io
Copy link

codecov-io commented Apr 22, 2019

Codecov Report

Merging #1997 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1997      +/-   ##
==========================================
+ Coverage   55.48%   55.49%   +0.01%     
==========================================
  Files         173      173              
  Lines        7510     7512       +2     
==========================================
+ Hits         4167     4169       +2     
  Misses       2952     2952              
  Partials      391      391
Impacted Files Coverage Δ
cmd/skaffold/app/cmd/cmd.go 75% <100%> (+0.53%) ⬆️
cmd/skaffold/app/cmd/delete.go 36.84% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 37baddd...e999b54. Read the comment docs.

@tejal29 tejal29 added the kokoro:run runs the kokoro jobs on a PR label Apr 22, 2019
@tejal29 tejal29 self-assigned this Apr 22, 2019
@kokoro-team kokoro-team removed the kokoro:run runs the kokoro jobs on a PR label Apr 22, 2019
@tejal29 tejal29 added good first issue Good for newcomers kokoro:run runs the kokoro jobs on a PR area/cli and removed area/cli good first issue Good for newcomers labels Apr 22, 2019
@@ -142,6 +142,19 @@ func FlagToEnvVarName(f *pflag.Flag) string {
return fmt.Sprintf("SKAFFOLD_%s", strings.Replace(strings.ToUpper(f.Name), "-", "_", -1))
}

func AddRunDeleteFlags(cmd *cobra.Command) {
cmd.Flags().BoolVar(&opts.EnableRPC, "enable-rpc", false, "Enable gRPC for exposing Skaffold events (true by default for `skaffold dev`)")
cmd.Flags().IntVar(&opts.RPCPort, "rpc-port", constants.DefaultRPCPort, "tcp port to expose event API")
Copy link
Member

Choose a reason for hiding this comment

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

Can you move these flags to AddCommonFlags ?

AddRunDevFlags(cmd *cobra.Command) {
   AddRunCommonDevFlags(cmd)
  cmd.Flags().BoolVar(&opts.CacheArtifacts, "cache-artifacts", false, "Set to true to enable caching of artifacts.")
  cmd.Flags().StringVarP(&opts.CacheFile, "cache-file", "", "", "Specify the location of the cache file (default $HOME/.skaffold/cache)")

}

@kokoro-team kokoro-team removed the kokoro:run runs the kokoro jobs on a PR label Apr 23, 2019
@tejal29 tejal29 added the kokoro:run runs the kokoro jobs on a PR label Apr 23, 2019
@dgageot dgageot merged commit 86d72b0 into GoogleContainerTools:master Apr 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes kokoro:run runs the kokoro jobs on a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Skaffold delete help shows some options which don't make sense.
6 participants