rbac-tool icon indicating copy to clipboard operation
rbac-tool copied to clipboard

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

Open Shaltz opened this issue 4 months ago • 0 comments

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:

Shaltz avatar Oct 18 '24 10:10 Shaltz