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

Support kubectl auth plugins in `KubeConfigRestClient` #13

Closed danopia closed 1 year ago

danopia commented 1 year ago

The config is already typed. Just need the implementation.

Maybe we can use Deno's new subprocess API?

Deno.Command will be stable in the next release, Deno 1.31

That's soon!

I understand that client.authentication.k8s.io involves passing JSON over stdin/stdout. It sounds like a bit of self-contained complexity.

Example config:

users:
- name: gke
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1beta1
      command: gke-gcloud-auth-plugin
      installHint: Install gke-gcloud-auth-plugin for use with kubectl by following
        https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke
      provideClusterInfo: true