From 2b0860848fbca5a4ba356ba61888a4ef6aa19bcf Mon Sep 17 00:00:00 2001 From: Zhao Xiaojie <1450685+LinuxSuRen@users.noreply.github.com> Date: Wed, 14 Apr 2021 08:46:42 +0800 Subject: [PATCH] Fix the issue that cannot install k3d with ks (#112) --- kubectl-plugin/install/k3d.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kubectl-plugin/install/k3d.go b/kubectl-plugin/install/k3d.go index 109a89d..45695b6 100644 --- a/kubectl-plugin/install/k3d.go +++ b/kubectl-plugin/install/k3d.go @@ -13,7 +13,9 @@ func newInstallK3DCmd() (cmd *cobra.Command) { Short: "Install KubeSphere with k3d", Long: `Install KubeSphere with k3d You can get more details from https://github.com/rancher/k3d/`, - RunE: opt.runE, + PreRunE: opt.preRunE, + RunE: opt.runE, + PostRunE: opt.postRunE, } flags := cmd.Flags()