Tins · Utilities
k8s
A small Kubernetes client for Mojo: pods, jobs and services created, listed, watched and deleted, and pods' logs, in a pod with its service account or from a kubeconfig. It is what Orca uses to start a Dista cluster per run.
What it does
Works today
- Manifests go in as JSON text; objects come back as json values, read with JSON pointers
- A kubeconfig's server, CA, client certificate and key, or a token
- An answer that isn't 2xx raises with the API's own message
- exec and auth-provider users (cloud CLIs) aren't supported: pass a token
Correctness
Checked against Every call against a live kind cluster in CI