cli
cli copied to clipboard
[Create] store helm certificates in Kubernetes secrets
Currently, snow create will write to the user's ~/.helm directory, creating a bunch of files:
ca.cert.pemca.key.pemhelm.cert.pemhelm.csr.pemhelm.key.pemtiller.cert.pemtiller.csr.pemtiller.key.pem
This is problematic if we want to use snow with different clusters-- running snow create repetitively would overwrite the old files. Additionally, if you run snow create in a CI environment, it's possible you might lose the files forever.
To keep things portable, these files should be stored as Kubernetes secrets, and retrieved as necessary.
Upgrading to Helm 3 will solve this problem. The tiller client is eliminated, so no need to generate certificates.