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
The config is already typed. Just need the implementation.
Maybe we can use Deno's new subprocess API?
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: