kubectl-view-allocations icon indicating copy to clipboard operation
kubectl-view-allocations copied to clipboard

Authentication with provider azure not supported

Open adriananeci opened this issue 3 years ago • 1 comments

While using Azure OIDC for authenticating to cluster, I'm getting the following error while running the plugin:

❯ kubectl view-allocations
{"v":0,"name":"kubectl_view_allocations","msg":"failed \ncli: CliOpts { context: None, namespace: None, utilization: false, show_zero: false, resource_name: [], group_by: [resource, node, pod], output: table }\nerror: KubeError { context: \"create the kube client\", source: Kubeconfig(AuthExec(\"Authentication with provider azure not supported\")) }","level":50,"hostname":"Adrian.local","pid":55133,"time":"2021-07-13T12:46:14.374337+00:00","target":"kubectl_view_allocations","line":43,"file":"src/main.rs"}

adriananeci avatar Jul 13 '21 12:07 adriananeci

I second this

yacinelazaar avatar Sep 10 '21 11:09 yacinelazaar

Sorry, it's seems it will not be supported by the underhood lib currently use see discussion at add support for Azure oidc auth · Issue #501 · kube-rs/kube.

At end of discussion a workaround seems to use kubelogin convert-kubeconfig (Azure/kubelogin,)

davidB avatar Nov 25 '23 19:11 davidB