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
a5394ea0
Commit
a5394ea0
authored
Mar 06, 2018
by
Matthew Fisher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix helm init --wait
(cherry picked from commit
a66a39a1
)
parent
cc5a8abe
Show whitespace changes
Inline
Side-by-side
Showing
67 changed files
with
197 additions
and
70 deletions
+197
-70
delete.go
cmd/helm/delete.go
+1
-1
get.go
cmd/helm/get.go
+1
-1
get_hooks.go
cmd/helm/get_hooks.go
+1
-1
get_manifest.go
cmd/helm/get_manifest.go
+1
-1
get_values.go
cmd/helm/get_values.go
+1
-1
helm.go
cmd/helm/helm.go
+2
-2
history.go
cmd/helm/history.go
+1
-1
init.go
cmd/helm/init.go
+50
-2
install.go
cmd/helm/install.go
+1
-1
list.go
cmd/helm/list.go
+1
-1
load_plugins.go
cmd/helm/load_plugins.go
+1
-1
release_testing.go
cmd/helm/release_testing.go
+1
-1
reset.go
cmd/helm/reset.go
+1
-1
rollback.go
cmd/helm/rollback.go
+1
-1
status.go
cmd/helm/status.go
+1
-1
upgrade.go
cmd/helm/upgrade.go
+1
-1
version.go
cmd/helm/version.go
+1
-1
tiller.go
cmd/tiller/tiller.go
+8
-0
helm.md
docs/helm/helm.md
+2
-1
helm_completion.md
docs/helm/helm_completion.md
+2
-1
helm_create.md
docs/helm/helm_create.md
+2
-1
helm_delete.md
docs/helm/helm_delete.md
+2
-1
helm_dependency.md
docs/helm/helm_dependency.md
+2
-1
helm_dependency_build.md
docs/helm/helm_dependency_build.md
+2
-1
helm_dependency_list.md
docs/helm/helm_dependency_list.md
+2
-1
helm_dependency_update.md
docs/helm/helm_dependency_update.md
+2
-1
helm_fetch.md
docs/helm/helm_fetch.md
+2
-1
helm_get.md
docs/helm/helm_get.md
+2
-1
helm_get_hooks.md
docs/helm/helm_get_hooks.md
+2
-1
helm_get_manifest.md
docs/helm/helm_get_manifest.md
+2
-1
helm_get_values.md
docs/helm/helm_get_values.md
+2
-1
helm_history.md
docs/helm/helm_history.md
+2
-1
helm_home.md
docs/helm/helm_home.md
+2
-1
helm_init.md
docs/helm/helm_init.md
+2
-1
helm_inspect.md
docs/helm/helm_inspect.md
+2
-1
helm_inspect_chart.md
docs/helm/helm_inspect_chart.md
+2
-1
helm_inspect_values.md
docs/helm/helm_inspect_values.md
+2
-1
helm_install.md
docs/helm/helm_install.md
+2
-1
helm_lint.md
docs/helm/helm_lint.md
+2
-1
helm_list.md
docs/helm/helm_list.md
+2
-1
helm_package.md
docs/helm/helm_package.md
+2
-1
helm_plugin.md
docs/helm/helm_plugin.md
+2
-1
helm_plugin_install.md
docs/helm/helm_plugin_install.md
+2
-1
helm_plugin_list.md
docs/helm/helm_plugin_list.md
+2
-1
helm_plugin_remove.md
docs/helm/helm_plugin_remove.md
+2
-1
helm_plugin_update.md
docs/helm/helm_plugin_update.md
+2
-1
helm_repo.md
docs/helm/helm_repo.md
+2
-1
helm_repo_add.md
docs/helm/helm_repo_add.md
+2
-1
helm_repo_index.md
docs/helm/helm_repo_index.md
+2
-1
helm_repo_list.md
docs/helm/helm_repo_list.md
+2
-1
helm_repo_remove.md
docs/helm/helm_repo_remove.md
+2
-1
helm_repo_update.md
docs/helm/helm_repo_update.md
+2
-1
helm_reset.md
docs/helm/helm_reset.md
+2
-1
helm_rollback.md
docs/helm/helm_rollback.md
+2
-1
helm_search.md
docs/helm/helm_search.md
+2
-1
helm_serve.md
docs/helm/helm_serve.md
+2
-1
helm_status.md
docs/helm/helm_status.md
+2
-1
helm_template.md
docs/helm/helm_template.md
+2
-1
helm_test.md
docs/helm/helm_test.md
+2
-1
helm_upgrade.md
docs/helm/helm_upgrade.md
+2
-1
helm_verify.md
docs/helm/helm_verify.md
+2
-1
helm_version.md
docs/helm/helm_version.md
+2
-1
client.go
pkg/helm/client.go
+16
-3
environment.go
pkg/helm/environment/environment.go
+3
-0
option.go
pkg/helm/option.go
+10
-0
portforwarder.go
pkg/helm/portforwarder/portforwarder.go
+4
-3
portforwarder_test.go
pkg/helm/portforwarder/portforwarder_test.go
+1
-1
No files found.
cmd/helm/delete.go
View file @
a5394ea0
...
...
@@ -57,7 +57,7 @@ func newDeleteCmd(c helm.Interface, out io.Writer) *cobra.Command {
SuggestFor
:
[]
string
{
"remove"
,
"rm"
},
Short
:
"given a release name, delete the release from Kubernetes"
,
Long
:
deleteDesc
,
PreRunE
:
setupConnection
,
PreRunE
:
func
(
_
*
cobra
.
Command
,
_
[]
string
)
error
{
return
setupConnection
()
}
,
RunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
if
len
(
args
)
==
0
{
return
errors
.
New
(
"command 'delete' requires a release name"
)
...
...
cmd/helm/get.go
View file @
a5394ea0
...
...
@@ -57,7 +57,7 @@ func newGetCmd(client helm.Interface, out io.Writer) *cobra.Command {
Use
:
"get [flags] RELEASE_NAME"
,
Short
:
"download a named release"
,
Long
:
getHelp
,
PreRunE
:
setupConnection
,
PreRunE
:
func
(
_
*
cobra
.
Command
,
_
[]
string
)
error
{
return
setupConnection
()
}
,
RunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
if
len
(
args
)
==
0
{
return
errReleaseRequired
...
...
cmd/helm/get_hooks.go
View file @
a5394ea0
...
...
@@ -47,7 +47,7 @@ func newGetHooksCmd(client helm.Interface, out io.Writer) *cobra.Command {
Use
:
"hooks [flags] RELEASE_NAME"
,
Short
:
"download all hooks for a named release"
,
Long
:
getHooksHelp
,
PreRunE
:
setupConnection
,
PreRunE
:
func
(
_
*
cobra
.
Command
,
_
[]
string
)
error
{
return
setupConnection
()
}
,
RunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
if
len
(
args
)
==
0
{
return
errReleaseRequired
...
...
cmd/helm/get_manifest.go
View file @
a5394ea0
...
...
@@ -49,7 +49,7 @@ func newGetManifestCmd(client helm.Interface, out io.Writer) *cobra.Command {
Use
:
"manifest [flags] RELEASE_NAME"
,
Short
:
"download the manifest for a named release"
,
Long
:
getManifestHelp
,
PreRunE
:
setupConnection
,
PreRunE
:
func
(
_
*
cobra
.
Command
,
_
[]
string
)
error
{
return
setupConnection
()
}
,
RunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
if
len
(
args
)
==
0
{
return
errReleaseRequired
...
...
cmd/helm/get_values.go
View file @
a5394ea0
...
...
@@ -47,7 +47,7 @@ func newGetValuesCmd(client helm.Interface, out io.Writer) *cobra.Command {
Use
:
"values [flags] RELEASE_NAME"
,
Short
:
"download the values file for a named release"
,
Long
:
getValuesHelp
,
PreRunE
:
setupConnection
,
PreRunE
:
func
(
_
*
cobra
.
Command
,
_
[]
string
)
error
{
return
setupConnection
()
}
,
RunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
if
len
(
args
)
==
0
{
return
errReleaseRequired
...
...
cmd/helm/helm.go
View file @
a5394ea0
...
...
@@ -166,7 +166,7 @@ func markDeprecated(cmd *cobra.Command, notice string) *cobra.Command {
return
cmd
}
func
setupConnection
(
c
*
cobra
.
Command
,
args
[]
string
)
error
{
func
setupConnection
()
error
{
if
settings
.
TillerHost
==
""
{
config
,
client
,
err
:=
getKubeClient
(
settings
.
KubeContext
)
if
err
!=
nil
{
...
...
@@ -264,7 +264,7 @@ func ensureHelmClient(h helm.Interface) helm.Interface {
}
func
newClient
()
helm
.
Interface
{
options
:=
[]
helm
.
Option
{
helm
.
Host
(
settings
.
TillerHost
)}
options
:=
[]
helm
.
Option
{
helm
.
Host
(
settings
.
TillerHost
)
,
helm
.
ConnectTimeout
(
settings
.
TillerConnectionTimeout
)
}
if
tlsVerify
||
tlsEnable
{
if
tlsCaCertFile
==
""
{
...
...
cmd/helm/history.go
View file @
a5394ea0
...
...
@@ -61,7 +61,7 @@ func newHistoryCmd(c helm.Interface, w io.Writer) *cobra.Command {
Long
:
historyHelp
,
Short
:
"fetch release history"
,
Aliases
:
[]
string
{
"hist"
},
PreRunE
:
setupConnection
,
PreRunE
:
func
(
_
*
cobra
.
Command
,
_
[]
string
)
error
{
return
setupConnection
()
}
,
RunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
switch
{
case
len
(
args
)
==
0
:
...
...
cmd/helm/init.go
View file @
a5394ea0
...
...
@@ -23,6 +23,7 @@ import (
"fmt"
"io"
"os"
"time"
"github.com/spf13/cobra"
apierrors
"k8s.io/apimachinery/pkg/api/errors"
...
...
@@ -33,6 +34,7 @@ import (
"k8s.io/helm/pkg/getter"
"k8s.io/helm/pkg/helm"
"k8s.io/helm/pkg/helm/helmpath"
"k8s.io/helm/pkg/helm/portforwarder"
"k8s.io/helm/pkg/repo"
)
...
...
@@ -307,11 +309,13 @@ func (i *initCmd) run() error {
"(Use --client-only to suppress this message, or --upgrade to upgrade Tiller to the current version.)"
)
}
}
else
{
fmt
.
Fprintln
(
i
.
out
,
"
\n
Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.
\n\n
"
+
"Please note: by default, Tiller is deployed with an insecure 'allow unauthenticated users' policy.
\n
"
+
"For more information on securing your installation see: https://docs.helm.sh/using_helm/#securing-your-helm-installation"
)
}
if
err
:=
i
.
ping
();
err
!=
nil
{
return
err
}
fmt
.
Fprintln
(
i
.
out
,
"
\n
Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster."
)
}
}
else
{
fmt
.
Fprintln
(
i
.
out
,
"Not installing Tiller due to 'client-only' flag having been set"
)
}
...
...
@@ -322,6 +326,19 @@ func (i *initCmd) run() error {
func
(
i
*
initCmd
)
ping
()
error
{
if
i
.
wait
{
_
,
kubeClient
,
err
:=
getKubeClient
(
settings
.
KubeContext
)
if
err
!=
nil
{
return
err
}
if
!
watchTillerUntilReady
(
settings
.
TillerNamespace
,
kubeClient
,
settings
.
TillerConnectionTimeout
)
{
return
fmt
.
Errorf
(
"tiller was not found. polling deadline exceeded"
)
}
// establish a connection to Tiller now that we've effectively guaranteed it's available
if
err
:=
setupConnection
();
err
!=
nil
{
return
err
}
i
.
client
=
newClient
()
if
err
:=
i
.
client
.
PingTiller
();
err
!=
nil
{
return
fmt
.
Errorf
(
"could not ping Tiller: %s"
,
err
)
}
...
...
@@ -438,3 +455,34 @@ func ensureRepoFileFormat(file string, out io.Writer) error {
return
nil
}
// watchTillerUntilReady waits for the tiller pod to become available. This is useful in situations where we
// want to wait before we call New().
//
// Returns true if it exists. If the timeout was reached and it could not find the pod, it returns false.
func
watchTillerUntilReady
(
namespace
string
,
client
kubernetes
.
Interface
,
timeout
int64
)
bool
{
deadlinePollingChan
:=
time
.
NewTimer
(
time
.
Duration
(
timeout
)
*
time
.
Second
)
.
C
checkTillerPodTicker
:=
time
.
NewTicker
(
500
*
time
.
Millisecond
)
doneChan
:=
make
(
chan
bool
)
defer
checkTillerPodTicker
.
Stop
()
go
func
()
{
for
range
checkTillerPodTicker
.
C
{
_
,
err
:=
portforwarder
.
GetTillerPodName
(
client
.
CoreV1
(),
namespace
)
if
err
==
nil
{
doneChan
<-
true
break
}
}
}()
for
{
select
{
case
<-
deadlinePollingChan
:
return
false
case
<-
doneChan
:
return
true
}
}
}
cmd/helm/install.go
View file @
a5394ea0
...
...
@@ -153,7 +153,7 @@ func newInstallCmd(c helm.Interface, out io.Writer) *cobra.Command {
Use
:
"install [CHART]"
,
Short
:
"install a chart archive"
,
Long
:
installDesc
,
PreRunE
:
setupConnection
,
PreRunE
:
func
(
_
*
cobra
.
Command
,
_
[]
string
)
error
{
return
setupConnection
()
}
,
RunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
if
err
:=
checkArgsLength
(
len
(
args
),
"chart name"
);
err
!=
nil
{
return
err
...
...
cmd/helm/list.go
View file @
a5394ea0
...
...
@@ -88,7 +88,7 @@ func newListCmd(client helm.Interface, out io.Writer) *cobra.Command {
Short
:
"list releases"
,
Long
:
listHelp
,
Aliases
:
[]
string
{
"ls"
},
PreRunE
:
setupConnection
,
PreRunE
:
func
(
_
*
cobra
.
Command
,
_
[]
string
)
error
{
return
setupConnection
()
}
,
RunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
if
len
(
args
)
>
0
{
list
.
filter
=
strings
.
Join
(
args
,
" "
)
...
...
cmd/helm/load_plugins.go
View file @
a5394ea0
...
...
@@ -103,7 +103,7 @@ func loadPlugins(baseCmd *cobra.Command, out io.Writer) {
if
_
,
err
:=
processParent
(
cmd
,
args
);
err
!=
nil
{
return
err
}
return
setupConnection
(
cmd
,
args
)
return
setupConnection
()
}
}
...
...
cmd/helm/release_testing.go
View file @
a5394ea0
...
...
@@ -51,7 +51,7 @@ func newReleaseTestCmd(c helm.Interface, out io.Writer) *cobra.Command {
Use
:
"test [RELEASE]"
,
Short
:
"test a release"
,
Long
:
releaseTestDesc
,
PreRunE
:
setupConnection
,
PreRunE
:
func
(
_
*
cobra
.
Command
,
_
[]
string
)
error
{
return
setupConnection
()
}
,
RunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
if
err
:=
checkArgsLength
(
len
(
args
),
"release name"
);
err
!=
nil
{
return
err
...
...
cmd/helm/reset.go
View file @
a5394ea0
...
...
@@ -58,7 +58,7 @@ func newResetCmd(client helm.Interface, out io.Writer) *cobra.Command {
Short
:
"uninstalls Tiller from a cluster"
,
Long
:
resetDesc
,
PreRunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
if
err
:=
setupConnection
(
cmd
,
args
);
!
d
.
force
&&
err
!=
nil
{
if
err
:=
setupConnection
();
!
d
.
force
&&
err
!=
nil
{
return
err
}
return
nil
...
...
cmd/helm/rollback.go
View file @
a5394ea0
...
...
@@ -57,7 +57,7 @@ func newRollbackCmd(c helm.Interface, out io.Writer) *cobra.Command {
Use
:
"rollback [flags] [RELEASE] [REVISION]"
,
Short
:
"roll back a release to a previous revision"
,
Long
:
rollbackDesc
,
PreRunE
:
setupConnection
,
PreRunE
:
func
(
_
*
cobra
.
Command
,
_
[]
string
)
error
{
return
setupConnection
()
}
,
RunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
if
err
:=
checkArgsLength
(
len
(
args
),
"release name"
,
"revision number"
);
err
!=
nil
{
return
err
...
...
cmd/helm/status.go
View file @
a5394ea0
...
...
@@ -63,7 +63,7 @@ func newStatusCmd(client helm.Interface, out io.Writer) *cobra.Command {
Use
:
"status [flags] RELEASE_NAME"
,
Short
:
"displays the status of the named release"
,
Long
:
statusHelp
,
PreRunE
:
setupConnection
,
PreRunE
:
func
(
_
*
cobra
.
Command
,
_
[]
string
)
error
{
return
setupConnection
()
}
,
RunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
if
len
(
args
)
==
0
{
return
errReleaseRequired
...
...
cmd/helm/upgrade.go
View file @
a5394ea0
...
...
@@ -91,7 +91,7 @@ func newUpgradeCmd(client helm.Interface, out io.Writer) *cobra.Command {
Use
:
"upgrade [RELEASE] [CHART]"
,
Short
:
"upgrade a release"
,
Long
:
upgradeDesc
,
PreRunE
:
setupConnection
,
PreRunE
:
func
(
_
*
cobra
.
Command
,
_
[]
string
)
error
{
return
setupConnection
()
}
,
RunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
if
err
:=
checkArgsLength
(
len
(
args
),
"release name"
,
"chart path"
);
err
!=
nil
{
return
err
...
...
cmd/helm/version.go
View file @
a5394ea0
...
...
@@ -75,7 +75,7 @@ func newVersionCmd(c helm.Interface, out io.Writer) *cobra.Command {
if
version
.
showServer
{
// We do this manually instead of in PreRun because we only
// need a tunnel if server version is requested.
setupConnection
(
cmd
,
args
)
setupConnection
()
}
version
.
client
=
ensureHelmClient
(
version
.
client
)
return
version
.
run
()
...
...
cmd/tiller/tiller.go
View file @
a5394ea0
...
...
@@ -33,6 +33,8 @@ import (
goprom
"github.com/grpc-ecosystem/go-grpc-prometheus"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/health"
healthpb
"google.golang.org/grpc/health/grpc_health_v1"
"google.golang.org/grpc/keepalive"
"k8s.io/helm/pkg/kube"
...
...
@@ -113,6 +115,9 @@ func main() {
func
start
()
{
healthSrv
:=
health
.
NewServer
()
healthSrv
.
SetServingStatus
(
"Tiller"
,
healthpb
.
HealthCheckResponse_NOT_SERVING
)
clientset
,
err
:=
kube
.
New
(
nil
)
.
ClientSet
()
if
err
!=
nil
{
logger
.
Fatalf
(
"Cannot initialize Kubernetes connection: %s"
,
err
)
...
...
@@ -168,6 +173,7 @@ func start() {
}))
rootServer
=
tiller
.
NewServer
(
opts
...
)
healthpb
.
RegisterHealthServer
(
rootServer
,
healthSrv
)
lstn
,
err
:=
net
.
Listen
(
"tcp"
,
*
grpcAddr
)
if
err
!=
nil
{
...
...
@@ -207,6 +213,8 @@ func start() {
}
}()
healthSrv
.
SetServingStatus
(
"Tiller"
,
healthpb
.
HealthCheckResponse_SERVING
)
select
{
case
err
:=
<-
srvErrCh
:
logger
.
Fatalf
(
"Server died: %s"
,
err
)
...
...
docs/helm/helm.md
View file @
a5394ea0
...
...
@@ -36,6 +36,7 @@ Environment:
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
...
...
@@ -67,4 +68,4 @@ Environment:
*
[
helm verify
](
helm_verify.md
)
- verify that a chart at the given path has been signed and is valid
*
[
helm version
](
helm_version.md
)
- print the client/server version information
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_completion.md
View file @
a5394ea0
...
...
@@ -28,10 +28,11 @@ helm completion SHELL
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_create.md
View file @
a5394ea0
...
...
@@ -47,10 +47,11 @@ helm create NAME
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_delete.md
View file @
a5394ea0
...
...
@@ -38,10 +38,11 @@ helm delete [flags] RELEASE_NAME [...]
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_dependency.md
View file @
a5394ea0
...
...
@@ -61,6 +61,7 @@ for this case.
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
...
...
@@ -70,4 +71,4 @@ for this case.
*
[
helm dependency list
](
helm_dependency_list.md
)
- list the dependencies for the given chart
*
[
helm dependency update
](
helm_dependency_update.md
)
- update charts/ based on the contents of requirements.yaml
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_dependency_build.md
View file @
a5394ea0
...
...
@@ -34,10 +34,11 @@ helm dependency build [flags] CHART
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm dependency
](
helm_dependency.md
)
- manage a chart's dependencies
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_dependency_list.md
View file @
a5394ea0
...
...
@@ -26,10 +26,11 @@ helm dependency list [flags] CHART
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm dependency
](
helm_dependency.md
)
- manage a chart's dependencies
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_dependency_update.md
View file @
a5394ea0
...
...
@@ -39,10 +39,11 @@ helm dependency update [flags] CHART
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm dependency
](
helm_dependency.md
)
- manage a chart's dependencies
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_fetch.md
View file @
a5394ea0
...
...
@@ -48,10 +48,11 @@ helm fetch [flags] [chart URL | repo/chartname] [...]
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_get.md
View file @
a5394ea0
...
...
@@ -40,6 +40,7 @@ helm get [flags] RELEASE_NAME
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
...
...
@@ -49,4 +50,4 @@ helm get [flags] RELEASE_NAME
*
[
helm get manifest
](
helm_get_manifest.md
)
- download the manifest for a named release
*
[
helm get values
](
helm_get_values.md
)
- download the values file for a named release
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_get_hooks.md
View file @
a5394ea0
...
...
@@ -33,10 +33,11 @@ helm get hooks [flags] RELEASE_NAME
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm get
](
helm_get.md
)
- download a named release
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_get_manifest.md
View file @
a5394ea0
...
...
@@ -35,10 +35,11 @@ helm get manifest [flags] RELEASE_NAME
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm get
](
helm_get.md
)
- download a named release
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_get_values.md
View file @
a5394ea0
...
...
@@ -32,10 +32,11 @@ helm get values [flags] RELEASE_NAME
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm get
](
helm_get.md
)
- download a named release
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_history.md
View file @
a5394ea0
...
...
@@ -44,10 +44,11 @@ helm history [flags] RELEASE_NAME
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_home.md
View file @
a5394ea0
...
...
@@ -21,10 +21,11 @@ helm home
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_init.md
View file @
a5394ea0
...
...
@@ -63,10 +63,11 @@ helm init
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
9-Mar
-2018
docs/helm/helm_inspect.md
View file @
a5394ea0
...
...
@@ -35,6 +35,7 @@ helm inspect [CHART]
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
...
...
@@ -43,4 +44,4 @@ helm inspect [CHART]
*
[
helm inspect chart
](
helm_inspect_chart.md
)
- shows inspect chart
*
[
helm inspect values
](
helm_inspect_values.md
)
- shows inspect values
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_inspect_chart.md
View file @
a5394ea0
...
...
@@ -33,10 +33,11 @@ helm inspect chart [CHART]
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm inspect
](
helm_inspect.md
)
- inspect a chart
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_inspect_values.md
View file @
a5394ea0
...
...
@@ -33,10 +33,11 @@ helm inspect values [CHART]
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm inspect
](
helm_inspect.md
)
- inspect a chart
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_install.md
View file @
a5394ea0
...
...
@@ -102,10 +102,11 @@ helm install [CHART]
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_lint.md
View file @
a5394ea0
...
...
@@ -34,10 +34,11 @@ helm lint [flags] PATH
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_list.md
View file @
a5394ea0
...
...
@@ -66,10 +66,11 @@ helm list [flags] [FILTER]
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_package.md
View file @
a5394ea0
...
...
@@ -40,10 +40,11 @@ helm package [flags] [CHART_PATH] [...]
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_plugin.md
View file @
a5394ea0
...
...
@@ -16,6 +16,7 @@ Manage client-side Helm plugins.
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
...
...
@@ -26,4 +27,4 @@ Manage client-side Helm plugins.
*
[
helm plugin remove
](
helm_plugin_remove.md
)
- remove one or more Helm plugins
*
[
helm plugin update
](
helm_plugin_update.md
)
- update one or more Helm plugins
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_plugin_install.md
View file @
a5394ea0
...
...
@@ -29,10 +29,11 @@ helm plugin install [options] <path|url>...
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm plugin
](
helm_plugin.md
)
- add, list, or remove Helm plugins
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_plugin_list.md
View file @
a5394ea0
...
...
@@ -18,10 +18,11 @@ helm plugin list
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm plugin
](
helm_plugin.md
)
- add, list, or remove Helm plugins
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_plugin_remove.md
View file @
a5394ea0
...
...
@@ -18,10 +18,11 @@ helm plugin remove <plugin>...
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm plugin
](
helm_plugin.md
)
- add, list, or remove Helm plugins
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_plugin_update.md
View file @
a5394ea0
...
...
@@ -18,10 +18,11 @@ helm plugin update <plugin>...
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm plugin
](
helm_plugin.md
)
- add, list, or remove Helm plugins
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_repo.md
View file @
a5394ea0
...
...
@@ -20,6 +20,7 @@ Example usage:
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
...
...
@@ -31,4 +32,4 @@ Example usage:
*
[
helm repo remove
](
helm_repo_remove.md
)
- remove a chart repository
*
[
helm repo update
](
helm_repo_update.md
)
- update information of available charts locally from chart repositories
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_repo_add.md
View file @
a5394ea0
...
...
@@ -27,10 +27,11 @@ helm repo add [flags] [NAME] [URL]
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm repo
](
helm_repo.md
)
- add, list, remove, update, and index chart repositories
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_repo_index.md
View file @
a5394ea0
...
...
@@ -34,10 +34,11 @@ helm repo index [flags] [DIR]
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm repo
](
helm_repo.md
)
- add, list, remove, update, and index chart repositories
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_repo_list.md
View file @
a5394ea0
...
...
@@ -18,10 +18,11 @@ helm repo list [flags]
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm repo
](
helm_repo.md
)
- add, list, remove, update, and index chart repositories
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_repo_remove.md
View file @
a5394ea0
...
...
@@ -18,10 +18,11 @@ helm repo remove [flags] [NAME]
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm repo
](
helm_repo.md
)
- add, list, remove, update, and index chart repositories
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_repo_update.md
View file @
a5394ea0
...
...
@@ -24,10 +24,11 @@ helm repo update
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm repo
](
helm_repo.md
)
- add, list, remove, update, and index chart repositories
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_reset.md
View file @
a5394ea0
...
...
@@ -34,10 +34,11 @@ helm reset
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
9-Mar
-2018
docs/helm/helm_rollback.md
View file @
a5394ea0
...
...
@@ -40,10 +40,11 @@ helm rollback [flags] [RELEASE] [REVISION]
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_search.md
View file @
a5394ea0
...
...
@@ -31,10 +31,11 @@ helm search [keyword]
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_serve.md
View file @
a5394ea0
...
...
@@ -39,10 +39,11 @@ helm serve
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_status.md
View file @
a5394ea0
...
...
@@ -39,10 +39,11 @@ helm status [flags] RELEASE_NAME
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_template.md
View file @
a5394ea0
...
...
@@ -43,10 +43,11 @@ helm template [flags] CHART
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_test.md
View file @
a5394ea0
...
...
@@ -35,10 +35,11 @@ helm test [RELEASE]
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_upgrade.md
View file @
a5394ea0
...
...
@@ -70,10 +70,11 @@ helm upgrade [RELEASE] [CHART]
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_verify.md
View file @
a5394ea0
...
...
@@ -33,10 +33,11 @@ helm verify [flags] PATH
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
8-Mar
-2018
docs/helm/helm_version.md
View file @
a5394ea0
...
...
@@ -47,10 +47,11 @@ helm version
--home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
--host string address of Tiller. Overrides $HELM_HOST
--kube-context string name of the kubeconfig context to use
--tiller-connection-timeout int the duration (in seconds) Helm will wait to establish a connection to tiller (default 300)
--tiller-namespace string namespace of Tiller (default "kube-system")
```
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jan
-2018
###### Auto generated by spf13/cobra on
9-Mar
-2018
pkg/helm/client.go
View file @
a5394ea0
...
...
@@ -17,6 +17,7 @@ limitations under the License.
package
helm
// import "k8s.io/helm/pkg/helm"
import
(
"fmt"
"io"
"time"
...
...
@@ -25,6 +26,7 @@ import (
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/keepalive"
healthpb
"google.golang.org/grpc/health/grpc_health_v1"
"k8s.io/helm/pkg/chartutil"
"k8s.io/helm/pkg/proto/hapi/chart"
rls
"k8s.io/helm/pkg/proto/hapi/services"
...
...
@@ -321,7 +323,7 @@ func (h *Client) connect(ctx context.Context) (conn *grpc.ClientConn, err error)
default
:
opts
=
append
(
opts
,
grpc
.
WithInsecure
())
}
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
5
*
time
.
Second
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
h
.
opts
.
connectTimeout
)
defer
cancel
()
if
conn
,
err
=
grpc
.
DialContext
(
ctx
,
h
.
opts
.
host
,
opts
...
);
err
!=
nil
{
return
nil
,
err
...
...
@@ -488,6 +490,17 @@ func (h *Client) ping(ctx context.Context) error {
}
defer
c
.
Close
()
rlc
:=
rls
.
NewReleaseServiceClient
(
c
)
return
rlc
.
PingTiller
(
ctx
)
healthClient
:=
healthpb
.
NewHealthClient
(
c
)
resp
,
err
:=
healthClient
.
Check
(
ctx
,
&
healthpb
.
HealthCheckRequest
{
Service
:
"Tiller"
})
if
err
!=
nil
{
return
err
}
switch
resp
.
GetStatus
()
{
case
healthpb
.
HealthCheckResponse_SERVING
:
return
nil
case
healthpb
.
HealthCheckResponse_NOT_SERVING
:
return
fmt
.
Errorf
(
"tiller is not serving requests at this time, Please try again later"
)
default
:
return
fmt
.
Errorf
(
"tiller healthcheck returned an unknown status"
)
}
}
pkg/helm/environment/environment.go
View file @
a5394ea0
...
...
@@ -39,6 +39,8 @@ var DefaultHelmHome = filepath.Join(homedir.HomeDir(), ".helm")
type
EnvSettings
struct
{
// TillerHost is the host and port of Tiller.
TillerHost
string
// TillerConnectionTimeout is the duration (in seconds) helm will wait to establish a connection to tiller.
TillerConnectionTimeout
int64
// TillerNamespace is the namespace in which Tiller runs.
TillerNamespace
string
// Home is the local path to the Helm home directory.
...
...
@@ -56,6 +58,7 @@ func (s *EnvSettings) AddFlags(fs *pflag.FlagSet) {
fs
.
StringVar
(
&
s
.
KubeContext
,
"kube-context"
,
""
,
"name of the kubeconfig context to use"
)
fs
.
BoolVar
(
&
s
.
Debug
,
"debug"
,
false
,
"enable verbose output"
)
fs
.
StringVar
(
&
s
.
TillerNamespace
,
"tiller-namespace"
,
"kube-system"
,
"namespace of Tiller"
)
fs
.
Int64Var
(
&
s
.
TillerConnectionTimeout
,
"tiller-connection-timeout"
,
int64
(
300
),
"the duration (in seconds) Helm will wait to establish a connection to tiller"
)
}
// Init sets values from the environment.
...
...
pkg/helm/option.go
View file @
a5394ea0
...
...
@@ -18,6 +18,7 @@ package helm
import
(
"crypto/tls"
"time"
"github.com/golang/protobuf/proto"
"golang.org/x/net/context"
...
...
@@ -78,6 +79,8 @@ type options struct {
reuseValues
bool
// release test options are applied directly to the test release history request
testReq
rls
.
TestReleaseRequest
// connectTimeout specifies the time duration Helm will wait to establish a connection to tiller
connectTimeout
time
.
Duration
}
// Host specifies the host address of the Tiller release server, (default = ":44134").
...
...
@@ -180,6 +183,13 @@ func ReleaseName(name string) InstallOption {
}
}
// ConnectTimeout specifies the duration (in seconds) Helm will wait to establish a connection to tiller
func
ConnectTimeout
(
timeout
int64
)
Option
{
return
func
(
opts
*
options
)
{
opts
.
connectTimeout
=
time
.
Duration
(
timeout
)
*
time
.
Second
}
}
// InstallTimeout specifies the number of seconds before kubernetes calls timeout
func
InstallTimeout
(
timeout
int64
)
InstallOption
{
return
func
(
opts
*
options
)
{
...
...
pkg/helm/portforwarder/portforwarder.go
View file @
a5394ea0
...
...
@@ -30,12 +30,12 @@ import (
)
var
(
tillerPodLabels
labels
.
Set
=
labels
.
Set
{
"app"
:
"helm"
,
"name"
:
"tiller"
}
tillerPodLabels
=
labels
.
Set
{
"app"
:
"helm"
,
"name"
:
"tiller"
}
)
// New creates a new and initialized tunnel.
func
New
(
namespace
string
,
client
kubernetes
.
Interface
,
config
*
rest
.
Config
)
(
*
kube
.
Tunnel
,
error
)
{
podName
,
err
:=
g
etTillerPodName
(
client
.
CoreV1
(),
namespace
)
podName
,
err
:=
G
etTillerPodName
(
client
.
CoreV1
(),
namespace
)
if
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -44,7 +44,8 @@ func New(namespace string, client kubernetes.Interface, config *rest.Config) (*k
return
t
,
t
.
ForwardPort
()
}
func
getTillerPodName
(
client
corev1
.
PodsGetter
,
namespace
string
)
(
string
,
error
)
{
// GetTillerPodName fetches the name of tiller pod running in the given namespace.
func
GetTillerPodName
(
client
corev1
.
PodsGetter
,
namespace
string
)
(
string
,
error
)
{
selector
:=
tillerPodLabels
.
AsSelector
()
pod
,
err
:=
getFirstRunningPod
(
client
,
namespace
,
selector
)
if
err
!=
nil
{
...
...
pkg/helm/portforwarder/portforwarder_test.go
View file @
a5394ea0
...
...
@@ -76,7 +76,7 @@ func TestGetFirstPod(t *testing.T) {
for
_
,
tt
:=
range
tests
{
client
:=
fake
.
NewSimpleClientset
(
&
v1
.
PodList
{
Items
:
tt
.
pods
})
name
,
err
:=
g
etTillerPodName
(
client
.
Core
(),
v1
.
NamespaceDefault
)
name
,
err
:=
G
etTillerPodName
(
client
.
Core
(),
v1
.
NamespaceDefault
)
if
(
err
!=
nil
)
!=
tt
.
err
{
t
.
Errorf
(
"%q. expected error: %v, got %v"
,
tt
.
name
,
tt
.
err
,
err
)
}
...
...
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