exit.UsageT("'none' driver does not support 'minikube ssh' command")
}
ifviper.GetBool(nativeSSH){
ssh.SetDefaultClient(ssh.Native)
}else{
ssh.SetDefaultClient(ssh.External)
}
err=cluster.CreateSSHShell(api,args)
iferr!=nil{
// This is typically due to a non-zero exit code, so no need for flourish.
...
...
@@ -55,3 +64,7 @@ var sshCmd = &cobra.Command{
}
},
}
funcinit(){
sshCmd.Flags().Bool(nativeSSH,true,"Use native Golang SSH client (default true). Set to 'false' to use the command line 'ssh' command when accessing the docker machine. Useful for the machine drivers when they will not start with 'Waiting for SSH'.")
startCmd.Flags().Bool(enableDefaultCNI,false,"Enable the default CNI plugin (/etc/cni/net.d/k8s.conf). Used in conjunction with \"--network-plugin=cni\".")
startCmd.Flags().Bool(waitUntilHealthy,true,"Wait until Kubernetes core services are healthy before exiting.")
startCmd.Flags().Duration(waitTimeout,3*time.Minute,"max time to wait per Kubernetes core services to be healthy.")
startCmd.Flags().Bool(nativeSSH,true,"Use native Golang SSH client (default true). Set to 'false' to use the command line 'ssh' command when accessing the docker machine. Useful for the machine drivers when they will not start with 'Waiting for SSH'.")
}
// initKubernetesFlags inits the commandline flags for kubernetes related options