Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use ks in the KubeSphere kubectl console #77

Open
LinuxSuRen opened this issue Mar 9, 2021 · 0 comments
Open

Cannot use ks in the KubeSphere kubectl console #77

LinuxSuRen opened this issue Mar 9, 2021 · 0 comments

Comments

@LinuxSuRen
Copy link
Contributor

You will get the errors like below:

/ # ks pip
stat /root/.kube/config: no such file or directory
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x1387442]

goroutine 1 [running]:
github.com/linuxsuren/ks/kubectl-plugin/pipeline.getAllNamespace(0x0, 0x0, 0x203000, 0xc0000b3958, 0x759cf3cb6dc993e)
        /home/runner/work/ks/ks/kubectl-plugin/pipeline/root.go:64 +0x82
github.com/linuxsuren/ks/kubectl-plugin/pipeline.getNamespace(0x0, 0x0, 0x250e990, 0x0, 0x0, 0x0, 0x153de60, 0xffffffffffffffff, 0xc0
000b3a20)
        /home/runner/work/ks/ks/kubectl-plugin/pipeline/root.go:44 +0xd5
github.com/linuxsuren/ks/kubectl-plugin/pipeline.getPipelines(0x0, 0x0, 0x250e990, 0x0, 0x0, 0xc0000b3b90, 0xc0000b3bb8, 0xc0000b3bb8
, 0x5bad44, 0xc0000e3700, ...)
        /home/runner/work/ks/ks/kubectl-plugin/pipeline/edit.go:95 +0x3f2
github.com/linuxsuren/ks/kubectl-plugin/pipeline.NewPipelineCmd.func1(0xc0001458c0, 0x250e990, 0x0, 0x0, 0x0, 0x0)
        /home/runner/work/ks/ks/kubectl-plugin/pipeline/root.go:21 +0x6c
github.com/spf13/cobra.(*Command).execute(0xc0001458c0, 0x250e990, 0x0, 0x0, 0xc0001458c0, 0x250e990)
        /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:850 +0x460
github.com/spf13/cobra.(*Command).ExecuteC(0xc0000dd080, 0x7, 0x174ce88, 0x1)
        /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:958 +0x349
github.com/spf13/cobra.(*Command).Execute(...)
        /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:895
github.com/linuxsuren/go-cli-alias/pkg/cmd.Execute(0xc0000dd080, 0x175144d, 0x7, 0xc000375400, 0x13, 0x13, 0x0)
        /home/runner/go/pkg/mod/github.com/linuxsuren/[email protected]/pkg/cmd/root.go:130 +0x644
main.main()
        /home/runner/work/ks/ks/main.go:53 +0x32b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant