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

[API VERSION ERROR] I get an apiVersion error when I try to use rbac-tool #119

Closed
Shaltz opened this issue Oct 18, 2024 · 1 comment · Fixed by #120
Closed

[API VERSION ERROR] I get an apiVersion error when I try to use rbac-tool #119

Shaltz opened this issue Oct 18, 2024 · 1 comment · Fixed by #120
Assignees
Labels
bug Something isn't working

Comments

@Shaltz
Copy link

Shaltz commented Oct 18, 2024

What happened:
When I try any command (let's say rbac-tool whoami --cluster-context mycontext)
I get an
Error: Failed to create kubernetes client - exec plugin: invalid apiVersion "client.authentication.k8s.io/v1"

if in my kube config file the apiVersion is set to
client.authentication.k8s.io/v1

What you expected to happen:
To be able to run and to use the apiVersion
client.authentication.k8s.io/v1

How to reproduce it (as minimally and precisely as possible):
in your ~/.kube/config file, in the "Users" block change any
apiVersion: client.authentication.k8s.io/v1beta1
to
apiVersion: client.authentication.k8s.io/v1

and try to use the application using the context you've modified previously.

Anything else we need to know?:

the apiVersion
client.authentication.k8s.io/v1

is stable since Kubernetes 1.22 (August 2021)

Environment:

  • Kubernetes version (use kubectl version): 1.31
  • Cloud provider or configuration: AWS EKS
  • Install tools: kubectl krew install rbac-tool
  • Others:
@gadinaor-r7 gadinaor-r7 self-assigned this Oct 29, 2024
@gadinaor-r7 gadinaor-r7 added the bug Something isn't working label Oct 29, 2024
@gadinaor-r7
Copy link
Contributor

@Shaltz - thanks !!! seems like we'll need to bump some deps in order to fix that

@gadinaor-r7 gadinaor-r7 linked a pull request Oct 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants