Skip to content

Commit

Permalink
Merge pull request #419 from covexo/tiller-issue
Browse files Browse the repository at this point in the history
Fix issue with wrong tiller deployment on devspace up
  • Loading branch information
FabianKramm authored Dec 10, 2018
2 parents c61a80f + b6240b1 commit 970577e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ func (cmd *InitCmd) configureDevSpace() {
config := configutil.GetConfig()
config.Cluster.KubeContext = &currentContext
config.Cluster.Namespace = namespace

config.Tiller = &v1.TillerConfig{
Namespace: namespace,
}
}

func (cmd *InitCmd) addDefaultService() {
Expand Down
8 changes: 7 additions & 1 deletion pkg/devspace/helm/tiller.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ func createTiller(kubectlClient *kubernetes.Clientset, dsConfig *v1.Config, till
}

// Create the deployment
return helminstaller.Install(kubectlClient, tillerOptions)
err = helminstaller.Install(kubectlClient, tillerOptions)
if err != nil {
return err
}

log.Donef("Created deployment %s in %s", TillerDeploymentName, tillerOptions.Namespace)
return nil
}

func waitUntilTillerIsStarted(kubectlClient *kubernetes.Clientset) error {
Expand Down

0 comments on commit 970577e

Please sign in to comment.