cloudydeno / deno-kubernetes_client

Typescript library for accessing a Kubernetes API server
https://deno.land/x/kubernetes_client
Apache License 2.0
18 stars 4 forks source link

exec workaround? #14

Closed devonsams closed 1 year ago

devonsams commented 1 year ago

I was wondering if there are suggestions for working around lack of exec support. I'm trying to connect to a cluster in Azure and my kube config uses the kubelogin command via exec. Any ideas?

devonsams commented 1 year ago

I see I can use KubectlRawRestClient, that will work.

danopia commented 1 year ago

As far as the lack of exec support, I believe the suggestion would be getting it implemented 😆

It's a TODO in the code and maybe shouldn't be crazy to write up:

https://github.com/cloudydeno/deno-kubernetes_client/blob/dd8cc8c5e8a97940c7e205b84c59b0e439c6916d/lib/kubeconfig.ts#L162-L164

I can do my own pass on this, but in the meantime, KubectlRawRestClient should be a fine workaround as you said.

danopia commented 1 year ago

Existing tracking issue for proper exec support:

danopia commented 1 year ago

I've released rudimentary exec: support in KubeConfigRestClient in tag v0.5.1. I did not test it with Azure Kubernetes, but given that Azure uses a DNS name for the control plane URL, KubeConfigRestClient should be able to connect now (in addition to KubectlRawRestClient)