[Bug]: k8s auth update report exception
Closed this issue · 0 comments
gyliu513 commented
Checklist
- I've searched for similar issues and couldn't find anything matching
- I've included steps to reproduce the behavior
Affected Components
- K8sGPT (CLI)
- K8sGPT Operator
K8sGPT Version
v0.3.37
Kubernetes Version
v1.30
Host OS and its Version
No response
Steps to reproduce
gyliu@guangyas-air k8sgpt % bin/k8sgpt auth update
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
github.com/k8sgpt-ai/k8sgpt/cmd/auth.init.func9(0x109462340, {0x109501c40, 0x0, 0x1067a23c7?})
/Users/gyliu/github.com/k8sgpt-ai/k8sgpt/cmd/auth/update.go:92 +0x638
github.com/spf13/cobra.(*Command).execute(0x109462340, {0x109501c40, 0x0, 0x0})
/Users/gyliu/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:989 +0x828
github.com/spf13/cobra.(*Command).ExecuteC(0x109460c40)
/Users/gyliu/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117 +0x344
github.com/spf13/cobra.(*Command).Execute(...)
/Users/gyliu/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041
github.com/k8sgpt-ai/k8sgpt/cmd.Execute({0x106ff835c?, 0x0?}, {0x106ff8870?, 0x1047c69b0?}, {0x106ff8960?, 0x140000021c0?})
/Users/gyliu/github.com/k8sgpt-ai/k8sgpt/cmd/root.go:59 +0xa0
main.main()
/Users/gyliu/github.com/k8sgpt-ai/k8sgpt/main.go:25 +0x4c
Expected behaviour
No exception
Actual behaviour
No response
Additional Information
No response