From 4fdfcbc03eb313c0ad9168e2538f3a18a1d5e0a2 Mon Sep 17 00:00:00 2001 From: fabiankramm Date: Mon, 11 Mar 2019 19:42:10 -0700 Subject: [PATCH] Don't set tiller namespace --- cmd/create/space.go | 6 ------ cmd/use/space.go | 12 ------------ 2 files changed, 18 deletions(-) diff --git a/cmd/create/space.go b/cmd/create/space.go index 80e128ac2a..a6aa21f506 100644 --- a/cmd/create/space.go +++ b/cmd/create/space.go @@ -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 diff --git a/cmd/use/space.go b/cmd/use/space.go index f5b77aa3b8..dbc3aebc9b 100644 --- a/cmd/use/space.go +++ b/cmd/use/space.go @@ -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 } @@ -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()