Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Commit

Permalink
add option to specify tiller host (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
prydonius authored Nov 23, 2017
1 parent b49bd4f commit 30ccc4c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ tillerPortForward: true
# Specify a different namespace where to locate tiller-deploy
tillerNamespace: kube-system

# Specify a custom host for Tiller
# tillerHost: localhost:44134

# Configure cache refresh interval in sec
cacheRefreshInterval: 3600

Expand Down
1 change: 1 addition & 0 deletions src/api/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type Configuration struct {
OAuthConfig oauthConfig `yaml:"oauthConfig"`
SigningKey string `yaml:"signingKey"`
TillerNamespace string `yaml:"tillerNamespace"`
TillerHost string `yaml:"tillerHost"`
Initialized bool
}

Expand Down
6 changes: 5 additions & 1 deletion src/api/data/helm/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ func (c *helmClient) initialize() (*helm.Client, error) {
if err != nil {
return nil, err
}

tillerHost := conf.TillerHost
tillerNamespace := conf.TillerNamespace
var tillerHost = fmt.Sprintf("%s.%s:%d", tillerServiceName, tillerNamespace, tillerPort)
if tillerHost == "" {
tillerHost = fmt.Sprintf("%s.%s:%d", tillerServiceName, tillerNamespace, tillerPort)
}

if c.portForward {
config, kubeClient, err := getKubeClient("")
Expand Down

0 comments on commit 30ccc4c

Please sign in to comment.