Skip to content

Commit

Permalink
Merge pull request #402 from covexo/watcher
Browse files Browse the repository at this point in the history
Switch context is by default true for deploy, enter and up
  • Loading branch information
FabianKramm authored Nov 29, 2018
2 parents ff6fd6f + 98ce5a6 commit ed3eb5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ devspace deploy https://github.com/covexo/devspace --branch test
cobraCmd.Flags().StringVar(&cmd.flags.ConfigOverwrite, "config-overwrite", configutil.OverwriteConfigPath, "The devspace config overwrite file to load (default: '.devspace/overwrite.yaml'")
cobraCmd.Flags().StringVar(&cmd.flags.DockerTarget, "docker-target", "", "The docker target to use for building")
cobraCmd.Flags().StringVar(&cmd.flags.CloudTarget, "cloud-target", "", "When using a cloud provider, the target to use")
cobraCmd.Flags().BoolVar(&cmd.flags.SwitchContext, "switch-context", false, "Switches the kube context to the deploy context")
cobraCmd.Flags().BoolVar(&cmd.flags.SwitchContext, "switch-context", true, "Switches the kube context to the deploy context")
cobraCmd.Flags().BoolVar(&cmd.flags.SkipBuild, "skip-build", false, "Skips the image build & push step")
// cobraCmd.Flags().StringVar(&cmd.flags.GitBranch, "branch", "master", "The git branch to checkout")

Expand Down
2 changes: 1 addition & 1 deletion cmd/enter.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ devspace enter bash -l release=test
cobraCmd.Flags().StringVarP(&cmd.flags.container, "container", "c", "", "Container name within pod where to execute command")
cobraCmd.Flags().StringVarP(&cmd.flags.labelSelector, "label-selector", "l", "", "Comma separated key=value selector list (e.g. release=test)")
cobraCmd.Flags().StringVarP(&cmd.flags.namespace, "namespace", "n", "", "Namespace where to select pods")
cobraCmd.Flags().BoolVar(&cmd.flags.switchContext, "switch-context", false, "Switch kubectl context to the devspace context")
cobraCmd.Flags().BoolVar(&cmd.flags.switchContext, "switch-context", true, "Switch kubectl context to the devspace context")
cobraCmd.Flags().StringVar(&cmd.flags.config, "config", configutil.ConfigPath, "The devspace config file to load (default: '.devspace/config.yaml'")
cobraCmd.Flags().StringVar(&cmd.flags.configOverwrite, "config-overwrite", configutil.OverwriteConfigPath, "The devspace config overwrite file to load (default: '.devspace/overwrite.yaml'")
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var UpFlagsDefault = &UpCmdFlags{
build: false,
sync: true,
terminal: true,
switchContext: false,
switchContext: true,
exitAfterDeploy: false,
allyes: false,
deploy: false,
Expand Down

0 comments on commit ed3eb5c

Please sign in to comment.