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, Long: globalUsage,
SilenceUsage: true, SilenceUsage: true,
PersistentPreRun: func(*cobra.Command, []string) { PersistentPreRun: func(*cobra.Command, []string) {
tlsCaCertFile = os.ExpandEnv(tlsCaCertFile) tlsCaCertFile = os.ExpandEnv("$HELM_TLS_CA_CERT")
tlsCertFile = os.ExpandEnv(tlsCertFile) tlsCertFile = os.ExpandEnv("$HELM_TLS_CERT")
tlsKeyFile = os.ExpandEnv(tlsKeyFile) tlsKeyFile = os.ExpandEnv("$HELM_TLS_KEY")
}, },
PersistentPostRun: func(*cobra.Command, []string) { PersistentPostRun: func(*cobra.Command, []string) {
teardown() teardown()
@ -275,15 +275,22 @@ func newClient() helm.Interface {
options := []helm.Option{helm.Host(settings.TillerHost), helm.ConnectTimeout(settings.TillerConnectionTimeout)} options := []helm.Option{helm.Host(settings.TillerHost), helm.ConnectTimeout(settings.TillerConnectionTimeout)}
if settings.TLSVerify || settings.TLSEnable { if settings.TLSVerify || settings.TLSEnable {
tlsCaCertFile = settings.TLSCaCertFile
if tlsCaCertFile == "" { if tlsCaCertFile == "" {
tlsCaCertFile = settings.Home.TLSCaCert() tlsCaCertFile = settings.Home.TLSCaCert()
} }
tlsCertFile = settings.TLSCertFile
if tlsCertFile == "" { if tlsCertFile == "" {
tlsCertFile = settings.Home.TLSCert() tlsCertFile = settings.Home.TLSCert()
} }
tlsKeyFile = settings.TLSKeyFile
if tlsKeyFile == "" { if tlsKeyFile == "" {
tlsKeyFile = settings.Home.TLSKey() tlsKeyFile = settings.Home.TLSKey()
} }
debug("Host=%q, Key=%q, Cert=%q, CA=%q\n", tlsServerName, tlsKeyFile, tlsCertFile, tlsCaCertFile) debug("Host=%q, Key=%q, Cert=%q, CA=%q\n", tlsServerName, tlsKeyFile, tlsCertFile, tlsCaCertFile)
tlsopts := tlsutil.Options{ tlsopts := tlsutil.Options{
ServerName: tlsServerName, 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 It is best to rely on a dedicated web server or a cloud-hosted solution like
Google Cloud Storage for production use. 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. 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. * [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