datawire / kubernaut

Instant ephemeral Kubernetes clusters for development and testing
Apache License 2.0
117 stars 8 forks source link

Support `kubernaut env` to emit useful environment variables #34

Open ark3 opened 6 years ago

ark3 commented 6 years ago

Make it easy to set up access to the Kubernaut facilities made available by the current claim. Something like

$ kubernaut env
KUBECONFIG=/Users/ark3/.kube/kubernaut
KUBERNAUT_IP=18.72.0.100
$ eval $(kubernaut env)

Future Kubernaut features could add to that list of variables, e.g.,

KUBERNAUT_DOCKER_REGISTRY=18.72.0.101

It might be useful to support other shells (kubernaut env --shell=fish). Presumably once multiple claims are a thing, this subcommand would need a --name flag as well.