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")
fs.StringVar(&s.TLSCaCertFile,"tls-ca-cert","","path to TLS CA certificate file used to verify the Helm client and Tiller server certificates")
fs.StringVar(&s.TLSCertFile,"tls-cert","","path to Helm TLS client certificate file for authenticating to Tiller")
fs.StringVar(&s.TLSKeyFile,"tls-key","","path to Helm TLS client key file for authenticating to Tiller")
fs.BoolVar(&s.TLSVerify,"tls-verify",false,"enable TLS connection between Helm and Tiller and verify Tiller server certificate")
fs.BoolVar(&s.TLSEnable,"tls",false,"enable TLS connection between Helm and Tiller")
}
// Init sets values from the environment.
@ -66,6 +81,16 @@ func (s *EnvSettings) Init(fs *pflag.FlagSet) {
forname,envar:=rangeenvMap{
setFlagFromEnv(name,envar,fs)
}
// TLS defaults that depend on Home value
ifs.TLSCaCertFile==""{
s.TLSCaCertFile=s.Home.TLSCaCert()
}
ifs.TLSCertFile==""{
s.TLSCertFile=s.Home.TLSCert()
}
ifs.TLSKeyFile==""{
s.TLSKeyFile=s.Home.TLSKey()
}
}
// PluginDirs is the path to the plugin directories.
@ -82,6 +107,11 @@ var envMap = map[string]string{