Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
bba0214e
Commit
bba0214e
authored
Apr 13, 2017
by
Matt Butcher
Committed by
GitHub
Apr 13, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2273 from sushilkm/issues/2272
Exposes repository-URLs as flags on helm init command
parents
0c11033f
2e8d2c01
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
4 deletions
+26
-4
init.go
cmd/helm/init.go
+8
-2
helm_init.md
docs/helm/helm_init.md
+3
-1
helm_init.1
docs/man/man1/helm_init.1
+11
-1
completions.bash
scripts/completions.bash
+4
-0
No files found.
cmd/helm/init.go
View file @
bba0214e
...
@@ -53,8 +53,11 @@ To dump a manifest containing the Tiller deployment YAML, combine the
...
@@ -53,8 +53,11 @@ To dump a manifest containing the Tiller deployment YAML, combine the
`
`
const
(
const
(
stableRepository
=
"stable"
stableRepository
=
"stable"
localRepository
=
"local"
localRepository
=
"local"
)
var
(
stableRepositoryURL
=
"https://kubernetes-charts.storage.googleapis.com"
stableRepositoryURL
=
"https://kubernetes-charts.storage.googleapis.com"
// This is the IPv4 loopback, not localhost, because we have to force IPv4
// This is the IPv4 loopback, not localhost, because we have to force IPv4
// for Dockerized Helm: https://github.com/kubernetes/helm/issues/1410
// for Dockerized Helm: https://github.com/kubernetes/helm/issues/1410
...
@@ -108,6 +111,9 @@ func newInitCmd(out io.Writer) *cobra.Command {
...
@@ -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
(
&
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
(
&
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
return
cmd
}
}
...
...
docs/helm/helm_init.md
View file @
bba0214e
...
@@ -36,7 +36,9 @@ helm init
...
@@ -36,7 +36,9 @@ helm init
--canary-image use the canary tiller image
--canary-image use the canary tiller image
-c, --client-only if set does not install tiller
-c, --client-only if set does not install tiller
--dry-run do not install local or remote
--dry-run do not install local or remote
--local-repo-url string URL for local repository (default "http://127.0.0.1:8879/charts")
--skip-refresh do not refresh (download) the local repository cache
--skip-refresh do not refresh (download) the local repository cache
--stable-repo-url string URL for stable repository (default "https://kubernetes-charts.storage.googleapis.com")
-i, --tiller-image string override tiller image
-i, --tiller-image string override tiller image
--tiller-tls install tiller with TLS enabled
--tiller-tls install tiller with TLS enabled
--tiller-tls-cert string path to TLS certificate file to install with tiller
--tiller-tls-cert string path to TLS certificate file to install with tiller
...
@@ -59,4 +61,4 @@ helm init
...
@@ -59,4 +61,4 @@ helm init
### SEE ALSO
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on 1
2
-Apr-2017
###### Auto generated by spf13/cobra on 1
3
-Apr-2017
docs/man/man1/helm_init.1
View file @
bba0214e
...
@@ -52,10 +52,20 @@ To dump a manifest containing the Tiller deployment YAML, combine the
...
@@ -52,10 +52,20 @@ To dump a manifest containing the Tiller deployment YAML, combine the
\fB\-\-dry\-run\fP[=false]
\fB\-\-dry\-run\fP[=false]
do not install local or remote
do not install local or remote
.PP
\fB\-\-local\-repo\-url\fP="
\[la]http://127.0.0.1:8879/charts"\[ra]
URL for local repository
.PP
.PP
\fB\-\-skip\-refresh\fP[=false]
\fB\-\-skip\-refresh\fP[=false]
do not refresh (download) the local repository cache
do not refresh (download) the local repository cache
.PP
\fB\-\-stable\-repo\-url\fP="
\[la]https://kubernetes-charts.storage.googleapis.com"\[ra]
URL for stable repository
.PP
.PP
\fB\-i\fP, \fB\-\-tiller\-image\fP=""
\fB\-i\fP, \fB\-\-tiller\-image\fP=""
override tiller image
override tiller image
...
@@ -114,4 +124,4 @@ To dump a manifest containing the Tiller deployment YAML, combine the
...
@@ -114,4 +124,4 @@ To dump a manifest containing the Tiller deployment YAML, combine the
.SH HISTORY
.SH HISTORY
.PP
.PP
1
2
\-Apr\-2017 Auto generated by spf13/cobra
1
3
\-Apr\-2017 Auto generated by spf13/cobra
scripts/completions.bash
View file @
bba0214e
...
@@ -634,8 +634,12 @@ _helm_init()
...
@@ -634,8 +634,12 @@ _helm_init()
local_nonpersistent_flags+
=(
"--client-only"
)
local_nonpersistent_flags+
=(
"--client-only"
)
flags+
=(
"--dry-run"
)
flags+
=(
"--dry-run"
)
local_nonpersistent_flags+
=(
"--dry-run"
)
local_nonpersistent_flags+
=(
"--dry-run"
)
flags+
=(
"--local-repo-url="
)
local_nonpersistent_flags+
=(
"--local-repo-url="
)
flags+
=(
"--skip-refresh"
)
flags+
=(
"--skip-refresh"
)
local_nonpersistent_flags+
=(
"--skip-refresh"
)
local_nonpersistent_flags+
=(
"--skip-refresh"
)
flags+
=(
"--stable-repo-url="
)
local_nonpersistent_flags+
=(
"--stable-repo-url="
)
flags+
=(
"--tiller-image="
)
flags+
=(
"--tiller-image="
)
two_word_flags+
=(
"-i"
)
two_word_flags+
=(
"-i"
)
local_nonpersistent_flags+
=(
"--tiller-image="
)
local_nonpersistent_flags+
=(
"--tiller-image="
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment