-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: make all flags env vars #38
Comments
Comment by @lkysow Hey @robertlabrie thanks for the ticket. I've got a couple thoughts/questions about this.
So to that end, can you give us more information about your specific use case to help us understand your problem better? It sounds like you're interested in make the variables that change per environment to be set via env vars? Also, in Kubernetes you can use env vars as args too: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#use-environment-variables-to-define-arguments but this is a bit more kludgy. |
Comment by @robertlabrie Hi @lkysow I didn't realize there were any downsides to it, so maybe it's no so trivial. I'm running Atlantis as a systemd service. I had to template both the .service file and an environment file for the sensitive data. Making everything an env var means I just have to template my EnvironmentFile. Same with kubernetes. You can pass args to a container, but it's this clunky array of args so you end up with In neither case is it the end of the world, it makes things a little cleaner I think but I'm not so attached to the idea that I'll fork the project and implement it myself. This just came up while I was setting it up for us.
|
Comment by @robertlabrie So I just had to add something, my chef template for atlantis.service looks like this:
|
Comment by @lkysow 👍 everything makes sense to me. I think we could add env vars for
What do you think @anubhavmishra? |
Comment by @anubhavmishra Let's add environment variables since it is optional anyway. |
@robertlabrie better late than never? Sorry this took so long! |
Issue by @robertlabrie
Thursday Oct 19, 2017 at 18:00 GMT
Migrated from hootsuite/atlantis#163
Why was it migrated?
in server.go, it doesn't feel like it'd hurt to do things like
ATLANTIS_GH_USER
etc. Two use cases:The text was updated successfully, but these errors were encountered: