pull/4651/merge
Carlos Tadeu Panato Junior 7 years ago committed by GitHub
commit 68c664a22d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -87,9 +87,9 @@ func newRootCmd(args []string) *cobra.Command {
Long: globalUsage,
SilenceUsage: true,
PersistentPreRun: func(*cobra.Command, []string) {
tlsCaCertFile = os.ExpandEnv(tlsCaCertFile)
tlsCertFile = os.ExpandEnv(tlsCertFile)
tlsKeyFile = os.ExpandEnv(tlsKeyFile)
tlsCaCertFile = os.ExpandEnv("$HELM_TLS_CA_CERT")
tlsCertFile = os.ExpandEnv("$HELM_TLS_CERT")
tlsKeyFile = os.ExpandEnv("$HELM_TLS_KEY")
},
PersistentPostRun: func(*cobra.Command, []string) {
teardown()
@ -275,15 +275,22 @@ func newClient() helm.Interface {
options := []helm.Option{helm.Host(settings.TillerHost), helm.ConnectTimeout(settings.TillerConnectionTimeout)}
if settings.TLSVerify || settings.TLSEnable {
tlsCaCertFile = settings.TLSCaCertFile
if tlsCaCertFile == "" {
tlsCaCertFile = settings.Home.TLSCaCert()
}
tlsCertFile = settings.TLSCertFile
if tlsCertFile == "" {
tlsCertFile = settings.Home.TLSCert()
}
tlsKeyFile = settings.TLSKeyFile
if tlsKeyFile == "" {
tlsKeyFile = settings.Home.TLSKey()
}
debug("Host=%q, Key=%q, Cert=%q, CA=%q\n", tlsServerName, tlsKeyFile, tlsCertFile, tlsCaCertFile)
tlsopts := tlsutil.Options{
ServerName: tlsServerName,

@ -15,7 +15,7 @@ This command is intended to be used for educational and testing purposes only.
It is best to rely on a dedicated web server or a cloud-hosted solution like
Google Cloud Storage for production use.
See https://github.com/helm/helm/blob/master/docs/chart_repository.md#hosting-chart-repositories
See https://github.com/kubernetes/helm/blob/master/docs/chart_repository.md#hosting-chart-repositories
for more information on hosting chart repositories in a production setting.
@ -48,4 +48,4 @@ helm serve [flags]
* [helm](helm.md) - The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on 1-Aug-2018
###### Auto generated by spf13/cobra on 17-Sep-2018

Loading…
Cancel
Save