Add a new flags and associated environment variables to override
the TLS Settings used when constructing the Kube Client.
- `--kube-insecure-skip-tls-verify | HELM_KUBEINSECURE_SKIP_TLS_VERIFY`: if true, the kube api server's certificate will not be checked for validity. This will make your HTTPS connections insecure
- `--kube-tls-server-name | HELM_KUBETLS_SERVER_NAME`: server name to use for kube api server certificate validation. If it is not provided, the hostname used to contact the server is used
Signed-off-by: Justen Walker <justen.walker+github@gmail.com>
@ -122,6 +132,8 @@ func (s *EnvSettings) AddFlags(fs *pflag.FlagSet) {
fs.StringArrayVar(&s.KubeAsGroups,"kube-as-group",s.KubeAsGroups,"group to impersonate for the operation, this flag can be repeated to specify multiple groups.")
fs.StringVar(&s.KubeAPIServer,"kube-apiserver",s.KubeAPIServer,"the address and the port for the Kubernetes API server")
fs.StringVar(&s.KubeCaFile,"kube-ca-file",s.KubeCaFile,"the certificate authority file for the Kubernetes API server connection")
fs.StringVar(&s.KubeTLSServerName,"kube-tls-server-name",s.KubeTLSServerName,"server name to use for Kubernetes API server certificate validation. If it is not provided, the hostname used to contact the server is used")
fs.BoolVar(&s.KubeInsecureSkipTLSVerify,"kube-insecure-skip-tls-verify",s.KubeInsecureSkipTLSVerify,"if true, the Kubernetes API server's certificate will not be checked for validity. This will make your HTTPS connections insecure")