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
f13c4d28
Commit
f13c4d28
authored
Jan 26, 2018
by
Matthew Fisher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "feat(helm): adding kubeconfig flag"
This reverts commit
371ff8f2
.
parent
ad54e71a
Hide whitespace changes
Inline
Side-by-side
Showing
48 changed files
with
47 additions
and
100 deletions
+47
-100
helm.go
cmd/helm/helm.go
+1
-1
install.go
cmd/helm/install.go
+1
-1
helm.md
docs/helm/helm.md
+1
-2
helm_completion.md
docs/helm/helm_completion.md
+1
-2
helm_create.md
docs/helm/helm_create.md
+1
-2
helm_delete.md
docs/helm/helm_delete.md
+1
-2
helm_dependency.md
docs/helm/helm_dependency.md
+1
-2
helm_dependency_build.md
docs/helm/helm_dependency_build.md
+1
-2
helm_dependency_list.md
docs/helm/helm_dependency_list.md
+1
-2
helm_dependency_update.md
docs/helm/helm_dependency_update.md
+1
-2
helm_fetch.md
docs/helm/helm_fetch.md
+1
-2
helm_get.md
docs/helm/helm_get.md
+1
-2
helm_get_hooks.md
docs/helm/helm_get_hooks.md
+1
-2
helm_get_manifest.md
docs/helm/helm_get_manifest.md
+1
-2
helm_get_values.md
docs/helm/helm_get_values.md
+1
-2
helm_history.md
docs/helm/helm_history.md
+1
-2
helm_home.md
docs/helm/helm_home.md
+1
-2
helm_init.md
docs/helm/helm_init.md
+1
-2
helm_inspect.md
docs/helm/helm_inspect.md
+1
-2
helm_inspect_chart.md
docs/helm/helm_inspect_chart.md
+1
-2
helm_inspect_values.md
docs/helm/helm_inspect_values.md
+1
-2
helm_install.md
docs/helm/helm_install.md
+1
-2
helm_lint.md
docs/helm/helm_lint.md
+1
-2
helm_list.md
docs/helm/helm_list.md
+1
-2
helm_package.md
docs/helm/helm_package.md
+1
-2
helm_plugin.md
docs/helm/helm_plugin.md
+1
-2
helm_plugin_install.md
docs/helm/helm_plugin_install.md
+1
-2
helm_plugin_list.md
docs/helm/helm_plugin_list.md
+1
-2
helm_plugin_remove.md
docs/helm/helm_plugin_remove.md
+1
-2
helm_plugin_update.md
docs/helm/helm_plugin_update.md
+1
-2
helm_repo.md
docs/helm/helm_repo.md
+1
-2
helm_repo_add.md
docs/helm/helm_repo_add.md
+1
-2
helm_repo_index.md
docs/helm/helm_repo_index.md
+1
-2
helm_repo_list.md
docs/helm/helm_repo_list.md
+1
-2
helm_repo_remove.md
docs/helm/helm_repo_remove.md
+1
-2
helm_repo_update.md
docs/helm/helm_repo_update.md
+1
-2
helm_reset.md
docs/helm/helm_reset.md
+1
-2
helm_rollback.md
docs/helm/helm_rollback.md
+1
-2
helm_search.md
docs/helm/helm_search.md
+1
-2
helm_serve.md
docs/helm/helm_serve.md
+1
-2
helm_status.md
docs/helm/helm_status.md
+1
-2
helm_template.md
docs/helm/helm_template.md
+1
-2
helm_test.md
docs/helm/helm_test.md
+1
-2
helm_upgrade.md
docs/helm/helm_upgrade.md
+1
-2
helm_verify.md
docs/helm/helm_verify.md
+1
-2
helm_version.md
docs/helm/helm_version.md
+1
-2
environment.go
pkg/helm/environment/environment.go
+0
-4
config.go
pkg/kube/config.go
+1
-6
No files found.
cmd/helm/helm.go
View file @
f13c4d28
...
...
@@ -220,7 +220,7 @@ func prettyError(err error) error {
// configForContext creates a Kubernetes REST client configuration for a given kubeconfig context.
func
configForContext
(
context
string
)
(
*
rest
.
Config
,
error
)
{
config
,
err
:=
kube
.
GetConfig
(
context
,
settings
.
KubeConfig
)
.
ClientConfig
()
config
,
err
:=
kube
.
GetConfig
(
context
)
.
ClientConfig
()
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"could not get Kubernetes config for context %q: %s"
,
context
,
err
)
}
...
...
cmd/helm/install.go
View file @
f13c4d28
...
...
@@ -460,7 +460,7 @@ func generateName(nameTemplate string) (string, error) {
}
func
defaultNamespace
()
string
{
if
ns
,
_
,
err
:=
kube
.
GetConfig
(
settings
.
KubeContext
,
settings
.
KubeConfig
)
.
Namespace
();
err
==
nil
{
if
ns
,
_
,
err
:=
kube
.
GetConfig
(
settings
.
KubeContext
)
.
Namespace
();
err
==
nil
{
return
ns
}
return
"default"
...
...
docs/helm/helm.md
View file @
f13c4d28
...
...
@@ -36,7 +36,6 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--tiller-namespace string namespace of Tiller (default "kube-system")
```
...
...
@@ -68,4 +67,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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_completion.md
View file @
f13c4d28
...
...
@@ -28,11 +28,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_create.md
View file @
f13c4d28
...
...
@@ -47,11 +47,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_delete.md
View file @
f13c4d28
...
...
@@ -38,11 +38,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_dependency.md
View file @
f13c4d28
...
...
@@ -61,7 +61,6 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--tiller-namespace string namespace of Tiller (default "kube-system")
```
...
...
@@ -71,4 +70,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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_dependency_build.md
View file @
f13c4d28
...
...
@@ -34,11 +34,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_dependency_list.md
View file @
f13c4d28
...
...
@@ -26,11 +26,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_dependency_update.md
View file @
f13c4d28
...
...
@@ -39,11 +39,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_fetch.md
View file @
f13c4d28
...
...
@@ -48,11 +48,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_get.md
View file @
f13c4d28
...
...
@@ -40,7 +40,6 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--tiller-namespace string namespace of Tiller (default "kube-system")
```
...
...
@@ -50,4 +49,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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_get_hooks.md
View file @
f13c4d28
...
...
@@ -33,11 +33,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
15-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_get_manifest.md
View file @
f13c4d28
...
...
@@ -35,11 +35,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
15-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_get_values.md
View file @
f13c4d28
...
...
@@ -32,11 +32,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
15-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_history.md
View file @
f13c4d28
...
...
@@ -44,11 +44,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
10
-Jan-2018
###### Auto generated by spf13/cobra on
25
-Jan-2018
docs/helm/helm_home.md
View file @
f13c4d28
...
...
@@ -21,11 +21,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_init.md
View file @
f13c4d28
...
...
@@ -63,11 +63,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
9
-Jan-2018
###### Auto generated by spf13/cobra on
25
-Jan-2018
docs/helm/helm_inspect.md
View file @
f13c4d28
...
...
@@ -35,7 +35,6 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--tiller-namespace string namespace of Tiller (default "kube-system")
```
...
...
@@ -44,4 +43,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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_inspect_chart.md
View file @
f13c4d28
...
...
@@ -33,11 +33,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_inspect_values.md
View file @
f13c4d28
...
...
@@ -33,11 +33,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_install.md
View file @
f13c4d28
...
...
@@ -102,11 +102,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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 2
3-Nov-2017
###### Auto generated by spf13/cobra on 2
5-Jan-2018
docs/helm/helm_lint.md
View file @
f13c4d28
...
...
@@ -34,11 +34,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_list.md
View file @
f13c4d28
...
...
@@ -66,11 +66,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
10
-Jan-2018
###### Auto generated by spf13/cobra on
25
-Jan-2018
docs/helm/helm_package.md
View file @
f13c4d28
...
...
@@ -40,11 +40,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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 2
4-Nov-2017
###### Auto generated by spf13/cobra on 2
5-Jan-2018
docs/helm/helm_plugin.md
View file @
f13c4d28
...
...
@@ -16,7 +16,6 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--tiller-namespace string namespace of Tiller (default "kube-system")
```
...
...
@@ -27,4 +26,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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_plugin_install.md
View file @
f13c4d28
...
...
@@ -29,11 +29,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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 2
0-Nov-2017
###### Auto generated by spf13/cobra on 2
5-Jan-2018
docs/helm/helm_plugin_list.md
View file @
f13c4d28
...
...
@@ -18,11 +18,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_plugin_remove.md
View file @
f13c4d28
...
...
@@ -18,11 +18,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_plugin_update.md
View file @
f13c4d28
...
...
@@ -18,11 +18,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_repo.md
View file @
f13c4d28
...
...
@@ -20,7 +20,6 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--tiller-namespace string namespace of Tiller (default "kube-system")
```
...
...
@@ -32,4 +31,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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_repo_add.md
View file @
f13c4d28
...
...
@@ -27,11 +27,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_repo_index.md
View file @
f13c4d28
...
...
@@ -34,11 +34,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_repo_list.md
View file @
f13c4d28
...
...
@@ -18,11 +18,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_repo_remove.md
View file @
f13c4d28
...
...
@@ -18,11 +18,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_repo_update.md
View file @
f13c4d28
...
...
@@ -24,11 +24,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_reset.md
View file @
f13c4d28
...
...
@@ -34,11 +34,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_rollback.md
View file @
f13c4d28
...
...
@@ -40,11 +40,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_search.md
View file @
f13c4d28
...
...
@@ -31,11 +31,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_serve.md
View file @
f13c4d28
...
...
@@ -39,11 +39,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_status.md
View file @
f13c4d28
...
...
@@ -39,11 +39,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
12-Dec-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_template.md
View file @
f13c4d28
...
...
@@ -43,11 +43,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
17
-Jan-2018
###### Auto generated by spf13/cobra on
25
-Jan-2018
docs/helm/helm_test.md
View file @
f13c4d28
...
...
@@ -35,11 +35,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_upgrade.md
View file @
f13c4d28
...
...
@@ -70,11 +70,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_verify.md
View file @
f13c4d28
...
...
@@ -33,11 +33,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
docs/helm/helm_version.md
View file @
f13c4d28
...
...
@@ -47,11 +47,10 @@ 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
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG
--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
7-Nov-2017
###### Auto generated by spf13/cobra on
25-Jan-2018
pkg/helm/environment/environment.go
View file @
f13c4d28
...
...
@@ -47,8 +47,6 @@ type EnvSettings struct {
Debug
bool
// KubeContext is the name of the kubeconfig context.
KubeContext
string
// KubeConfig is the name of the kubeconfig file.
KubeConfig
string
}
// AddFlags binds flags to the given flagset.
...
...
@@ -56,7 +54,6 @@ func (s *EnvSettings) AddFlags(fs *pflag.FlagSet) {
fs
.
StringVar
((
*
string
)(
&
s
.
Home
),
"home"
,
DefaultHelmHome
,
"location of your Helm config. Overrides $HELM_HOME"
)
fs
.
StringVar
(
&
s
.
TillerHost
,
"host"
,
""
,
"address of Tiller. Overrides $HELM_HOST"
)
fs
.
StringVar
(
&
s
.
KubeContext
,
"kube-context"
,
""
,
"name of the kubeconfig context to use"
)
fs
.
StringVar
(
&
s
.
KubeConfig
,
"kubeconfig"
,
""
,
"path to kubeconfig file. Overrides $KUBECONFIG"
)
fs
.
BoolVar
(
&
s
.
Debug
,
"debug"
,
false
,
"enable verbose output"
)
fs
.
StringVar
(
&
s
.
TillerNamespace
,
"tiller-namespace"
,
"kube-system"
,
"namespace of Tiller"
)
}
...
...
@@ -81,7 +78,6 @@ var envMap = map[string]string{
"debug"
:
"HELM_DEBUG"
,
"home"
:
"HELM_HOME"
,
"host"
:
"HELM_HOST"
,
"kubeconfig"
:
"KUBECONFIG"
,
"tiller-namespace"
:
"TILLER_NAMESPACE"
,
}
...
...
pkg/kube/config.go
View file @
f13c4d28
...
...
@@ -19,7 +19,7 @@ package kube // import "k8s.io/helm/pkg/kube"
import
"k8s.io/client-go/tools/clientcmd"
// GetConfig returns a Kubernetes client config for a given context.
func
GetConfig
(
context
string
,
kubeconfig
string
)
clientcmd
.
ClientConfig
{
func
GetConfig
(
context
string
)
clientcmd
.
ClientConfig
{
rules
:=
clientcmd
.
NewDefaultClientConfigLoadingRules
()
rules
.
DefaultClientConfig
=
&
clientcmd
.
DefaultClientConfig
...
...
@@ -28,10 +28,5 @@ func GetConfig(context string, kubeconfig string) clientcmd.ClientConfig {
if
context
!=
""
{
overrides
.
CurrentContext
=
context
}
if
kubeconfig
!=
""
{
rules
.
ExplicitPath
=
kubeconfig
}
return
clientcmd
.
NewNonInteractiveDeferredLoadingClientConfig
(
rules
,
overrides
)
}
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