Skip to content

Commit

Permalink
Added flag -tiller-namespace and environment TILLER_NAMESPACE (#1)
Browse files Browse the repository at this point in the history
Added flag -tiller-namespace and environment TILLER_NAMESPACE
  • Loading branch information
varyumin authored and sstarcher committed Jan 3, 2019
1 parent 8df51d9 commit 4aff6cf
Show file tree
Hide file tree
Showing 7 changed files with 171 additions and 2 deletions.
10 changes: 10 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ package main
import (
"fmt"
"time"

"flag"
"net/http"

"k8s.io/helm/pkg/helm"

"github.com/facebookgo/flagenv"

"k8s.io/helm/pkg/proto/hapi/release"

"github.com/prometheus/client_golang/prometheus"
Expand All @@ -28,7 +30,9 @@ var (

client = NewClient()

inClusterTiller = "tiller-deploy.kube-system:44134"
tillerNamespace = flag.String("tiller-namespace", "kube-system", "namespace of Tiller (default \"kube-system\")")

inClusterTiller = fmt.Sprintf("tiller-deploy.%s:44134", *tillerNamespace)
localTiller = "127.0.0.1:44134"
statusCodes = []release.Status_Code{
release.Status_UNKNOWN,
Expand Down Expand Up @@ -104,6 +108,8 @@ func helmStats() {
}

func main() {
flagenv.Parse()
flag.Parse()
go func() {
for {
helmStats()
Expand Down
19 changes: 19 additions & 0 deletions vendor/github.com/facebookgo/flagenv/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions vendor/github.com/facebookgo/flagenv/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

67 changes: 67 additions & 0 deletions vendor/github.com/facebookgo/flagenv/flagenv.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions vendor/github.com/facebookgo/flagenv/license

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions vendor/github.com/facebookgo/flagenv/patents

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4aff6cf

Please sign in to comment.