The new flag "--kube-apitimeout <duration>" or env.var. HELM_KUBEAPITIMEOUT
can be used to set the timeout on requests towards the Kubernetes API server.
This enables users with problematic K8s cluster to override the default timeout
and let the sent requests finish successfully.
Examples usage:
> helm --kube-apitimeout=45s install ...
> HELM_KUBEAPITIMEOUT=45s helm env
Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
@ -145,6 +150,7 @@ func (s *EnvSettings) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&s.KubeAsUser,"kube-as-user",s.KubeAsUser,"username to impersonate for the operation")
fs.StringVar(&s.KubeAsUser,"kube-as-user",s.KubeAsUser,"username to impersonate for the operation")
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.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.KubeAPIServer,"kube-apiserver",s.KubeAPIServer,"the address and the port for the Kubernetes API server")
fs.DurationVar(&s.KubeAPITimeout,"kube-apitimeout",s.KubeAPITimeout,"the timeout on requests towards 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.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.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")
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")