dotmesh-io / dotmesh

dotmesh (dm) is like git for your data volumes (databases, files etc) in Docker and Kubernetes
https://dotmesh.com
Apache License 2.0
539 stars 29 forks source link

Allow passing initial API key to dm cluster init #245

Open deitch opened 6 years ago

deitch commented 6 years ago

dm cluster init currently sets up a new cluster and generates a random key. Unfortunately, we cannot always capture that key to use later, but may be able to set it before running.

We should be able to do dm cluster init --apikey <somekey> or perhaps dm cluster init where it reads an env var named DOTMESH_APIKEY to set it to that.

Perfectly fine if it has minimum requirements, as long as if the key is set and it does not match those requirements, it fails, rather than overriding.

alaric-dotmesh commented 6 years ago

This would bring dm cluster init in line with k8s, where you provide it with a secret.