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

error when creating kubeconfig in k8s v1.27.5 #788

Closed
adl3n opened this issue Oct 17, 2023 · 4 comments
Closed

error when creating kubeconfig in k8s v1.27.5 #788

adl3n opened this issue Oct 17, 2023 · 4 comments
Labels
kind/bug Something isn't working

Comments

@adl3n
Copy link

adl3n commented Oct 17, 2023

Describe the bug
Error when creating kubeconfig in k8s v1.27.5. Will there be support for creating configs in 1.27?

To Reproduce
Steps to reproduce the behavior:

  1. Install kubecm with kubectl krew install kc
  2. kubectl kc create

Expected behavior
goroutine 1 [running]:
github.com/sunny0826/kubecm/cmd.(*CreateOptions).getToken(0xc00011fc30)
/home/runner/work/kubecm/kubecm/cmd/create.go:222 +0x1ab
github.com/sunny0826/kubecm/cmd.(*CreateCommand).runCreate(0x0?, 0x0?, {0x0?, 0x0?, 0x0?})
/home/runner/work/kubecm/kubecm/cmd/create.go:78 +0x13b
github.com/sunny0826/kubecm/cmd.(*CreateCommand).Init.func1(0xc000786600?, {0x2e323c0?, 0x0?, 0x0?})
/home/runner/work/kubecm/kubecm/cmd/create.go:41 +0x31
github.com/spf13/cobra.(*Command).execute(0xc000786600, {0x2e323c0, 0x0, 0x0})
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:940 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0xc000578000)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992
main.main()
/home/runner/work/kubecm/kubecm/main.go:30 +0x25

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • K8s:
    Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.0", GitCommit:"2bd9643cee5b3b3a5ecbd3af49d09018f0773c77", GitTreeState:"clean", BuildDate:"2019-09-18T14:36:53Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}

Server Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.5", GitCommit:"93e0d7146fb9c3e9f68aa41b2b4265b2fcdb0a4c", GitTreeState:"clean", BuildDate:"2023-08-24T00:42:11Z", GoVersion:"go1.20.7", Compiler:"gc", Platform:"linux/amd64"}

@sunny0826 sunny0826 added the kind/bug Something isn't working label Oct 18, 2023
@sunny0826
Copy link
Owner

Hi guys, it's good to receive your feedback. The create command has been in an experimental stage due to cluster adaptation issues, and I'll be actively working to resolve this issue, but unfortunately this doesn't have a clear solution or roadmap.

@adl3n
Copy link
Author

adl3n commented Oct 19, 2023

@sunny0826 Hi!
Please tell me, are there other ways to create a rbac for k8s version 1.27?
All the ways I tried didn't work. ;(

@sunny0826
Copy link
Owner

Sorry k8s 1.27 is too new for me, I have no experience with that version of k8s at the moment. I don't really know the difference between it and the old version. I'll take the time to look into it after that, thanks for the feedback.

@sunny0826
Copy link
Owner

This issue has been fixed in #864 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants