Skip to content

Commit 3bc9782

Browse files
authored
Merge pull request #499 from devspace-cloud/cloud-refactor
Don't set tiller namespace
2 parents 9dc9b9d + 4fdfcbc commit 3bc9782

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

cmd/create/space.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,6 @@ func (cmd *spaceCmd) RunCreateSpace(cobraCmd *cobra.Command, args []string) {
106106
log.Fatalf("Error saving kube config: %v", err)
107107
}
108108

109-
// Set tiller env
110-
err = cloud.SetTillerNamespace(space)
111-
if err != nil {
112-
log.Warnf("Couldn't set tiller namespace environment variable: %v", err)
113-
}
114-
115109
// Set space as active space
116110
if cmd.active && configExists {
117111
// Get generated config

cmd/use/space.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ func (cmd *spaceCmd) RunUseSpace(cobraCmd *cobra.Command, args []string) {
4949

5050
// Erase currently used space
5151
if args[0] == "none" {
52-
// Set tiller env
53-
err = cloudpkg.SetTillerNamespace(nil)
54-
if err != nil {
55-
log.Warnf("Couldn't set tiller namespace environment variable: %v", err)
56-
}
57-
5852
if !configExists {
5953
return
6054
}
@@ -107,12 +101,6 @@ func (cmd *spaceCmd) RunUseSpace(cobraCmd *cobra.Command, args []string) {
107101
log.Fatalf("Error saving kube config: %v", err)
108102
}
109103

110-
// Set tiller env
111-
err = cloudpkg.SetTillerNamespace(space)
112-
if err != nil {
113-
log.Warnf("Couldn't set tiller namespace environment variable: %v", err)
114-
}
115-
116104
if configExists {
117105
// Get generated config
118106
generatedConfig, err := generated.LoadConfig()

0 commit comments

Comments
 (0)