Skip to content

Commit

Permalink
Merge pull request #499 from devspace-cloud/cloud-refactor
Browse files Browse the repository at this point in the history
Don't set tiller namespace
  • Loading branch information
FabianKramm authored Mar 12, 2019
2 parents 9dc9b9d + 4fdfcbc commit 3bc9782
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
6 changes: 0 additions & 6 deletions cmd/create/space.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,6 @@ func (cmd *spaceCmd) RunCreateSpace(cobraCmd *cobra.Command, args []string) {
log.Fatalf("Error saving kube config: %v", err)
}

// Set tiller env
err = cloud.SetTillerNamespace(space)
if err != nil {
log.Warnf("Couldn't set tiller namespace environment variable: %v", err)
}

// Set space as active space
if cmd.active && configExists {
// Get generated config
Expand Down
12 changes: 0 additions & 12 deletions cmd/use/space.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ func (cmd *spaceCmd) RunUseSpace(cobraCmd *cobra.Command, args []string) {

// Erase currently used space
if args[0] == "none" {
// Set tiller env
err = cloudpkg.SetTillerNamespace(nil)
if err != nil {
log.Warnf("Couldn't set tiller namespace environment variable: %v", err)
}

if !configExists {
return
}
Expand Down Expand Up @@ -107,12 +101,6 @@ func (cmd *spaceCmd) RunUseSpace(cobraCmd *cobra.Command, args []string) {
log.Fatalf("Error saving kube config: %v", err)
}

// Set tiller env
err = cloudpkg.SetTillerNamespace(space)
if err != nil {
log.Warnf("Couldn't set tiller namespace environment variable: %v", err)
}

if configExists {
// Get generated config
generatedConfig, err := generated.LoadConfig()
Expand Down

0 comments on commit 3bc9782

Please sign in to comment.