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()