|
|
@ -47,8 +47,6 @@ type EnvSettings struct {
|
|
|
|
Debug bool
|
|
|
|
Debug bool
|
|
|
|
// KubeContext is the name of the kubeconfig context.
|
|
|
|
// KubeContext is the name of the kubeconfig context.
|
|
|
|
KubeContext string
|
|
|
|
KubeContext string
|
|
|
|
// KubeConfig is the name of the kubeconfig file.
|
|
|
|
|
|
|
|
KubeConfig string
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// AddFlags binds flags to the given flagset.
|
|
|
|
// 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((*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.TillerHost, "host", "", "address of Tiller. Overrides $HELM_HOST")
|
|
|
|
fs.StringVar(&s.KubeContext, "kube-context", "", "name of the kubeconfig context to use")
|
|
|
|
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.BoolVar(&s.Debug, "debug", false, "enable verbose output")
|
|
|
|
fs.StringVar(&s.TillerNamespace, "tiller-namespace", "kube-system", "namespace of Tiller")
|
|
|
|
fs.StringVar(&s.TillerNamespace, "tiller-namespace", "kube-system", "namespace of Tiller")
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -81,7 +78,6 @@ var envMap = map[string]string{
|
|
|
|
"debug": "HELM_DEBUG",
|
|
|
|
"debug": "HELM_DEBUG",
|
|
|
|
"home": "HELM_HOME",
|
|
|
|
"home": "HELM_HOME",
|
|
|
|
"host": "HELM_HOST",
|
|
|
|
"host": "HELM_HOST",
|
|
|
|
"kubeconfig": "KUBECONFIG",
|
|
|
|
|
|
|
|
"tiller-namespace": "TILLER_NAMESPACE",
|
|
|
|
"tiller-namespace": "TILLER_NAMESPACE",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|