执行kk upgrade从ks3.0到ks3.1,kk直接报错
bglab@master:~/csz/kubesphere-v3.1.0$ ./kk upgrade -f config-sample.yaml
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x17db359]
goroutine 1 [running]:
github.com/kubesphere/kubekey/pkg/cluster/upgrade.UpgradeCluster(0x7ffc7f5c259b, 0x12, 0x0, 0x0, 0x0, 0x0, 0xc000714000, 0xc000000100, 0x1b96a17, 0x10, ...)
/home/runner/work/kubekey/kubekey/pkg/cluster/upgrade/upgrade.go:47 +0x1a9
github.com/kubesphere/kubekey/cmd.glob..func11(0x2e07fa0, 0xc000282da0, 0x0, 0x2, 0x0, 0x0)
/home/runner/work/kubekey/kubekey/cmd/upgrade.go:36 +0x1f8
github.com/spf13/cobra.(*Command).execute(0x2e07fa0, 0xc000282d60, 0x2, 0x2, 0x2e07fa0, 0xc000282d60)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:850 +0x453
github.com/spf13/cobra.(*Command).ExecuteC(0x2e07a60, 0x0, 0x0, 0x2)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:958 +0x349
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:895
github.com/kubesphere/kubekey/cmd.Execute()
/home/runner/work/kubekey/kubekey/cmd/root.go:65 +0x125
main.main()
/home/runner/work/kubekey/kubekey/cmd/kk/main.go:25 +0x20
相关 版本
bglab@master:~/csz/kubesphere-v3.1.0$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
bglab@master:~/csz/kubesphere-v3.1.0$ uname -r
4.15.0-126-generic
bglab@master:~/csz/kubesphere-v3.1.0$ ./kk version
version.BuildInfo{Version:"1.1.0", GitCommit:"70671f7", GitTreeState:"", GoVersion:"go1.14.15"}
bglab@master:~/csz/kubesphere-v3.1.0$
在github issue也找到了这个问题 kubesphere/kubekey#526,什么时候修复呢?或暂时有方法规避么?