diff --git a/cmd/helm/init.go b/cmd/helm/init.go index 256ba6e3f88feb014018ca1a79c66cc4725659fe..be3d05528b92f1312e69c7fb06e3f46e683bebc7 100644 --- a/cmd/helm/init.go +++ b/cmd/helm/init.go @@ -53,8 +53,11 @@ To dump a manifest containing the Tiller deployment YAML, combine the ` const ( - stableRepository = "stable" - localRepository = "local" + stableRepository = "stable" + localRepository = "local" +) + +var ( stableRepositoryURL = "https://kubernetes-charts.storage.googleapis.com" // This is the IPv4 loopback, not localhost, because we have to force IPv4 // for Dockerized Helm: https://github.com/kubernetes/helm/issues/1410 @@ -108,6 +111,9 @@ func newInitCmd(out io.Writer) *cobra.Command { f.StringVar(&tlsCertFile, "tiller-tls-cert", "", "path to TLS certificate file to install with tiller") f.StringVar(&tlsCaCertFile, "tls-ca-cert", "", "path to CA root certificate") + f.StringVar(&stableRepositoryURL, "stable-repo-url", stableRepositoryURL, "URL for stable repository") + f.StringVar(&localRepositoryURL, "local-repo-url", localRepositoryURL, "URL for local repository") + return cmd }