when k9s --insecure-skip-tls-verify is set, kubectl would set the same (#1101)
* when k9s --insecure-skip-tls-verify is set, kubectl would set the same * check insecure flag nilmine
parent
5166686be5
commit
67fc0e347d
|
|
@ -49,6 +49,9 @@ func runK(a *App, opts shellOpts) bool {
|
|||
if g, err := a.Conn().Config().ImpersonateGroups(); err == nil {
|
||||
args = append(args, "--as-group", g)
|
||||
}
|
||||
if isInsecure := a.Conn().Config().Flags().Insecure; isInsecure != nil && *isInsecure {
|
||||
args = append(args, "--insecure-skip-tls-verify")
|
||||
}
|
||||
args = append(args, "--context", a.Config.K9s.CurrentContext)
|
||||
if cfg := a.Conn().Config().Flags().KubeConfig; cfg != nil && *cfg != "" {
|
||||
args = append(args, "--kubeconfig", *cfg)
|
||||
|
|
|
|||
Loading…
Reference in New Issue