Skip to content
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

Source environment variables from .env file when adding deployment secrets #7

Open
david-castaneda opened this issue May 16, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@david-castaneda
Copy link
Member

Currently, setting secrets is a very manual process and can be streamlined using a users .env file. The .env file can be referenced in the command line so that they get sourced and uploaded as secrets.

$ krane secrets add my-deployment -f ./.env

If an environment variable defined in the .env ALREADY exists it should not be overridden

Done uploading secrets for my-deployment sourced from ./env:
DB_URL: @DB_URL
DB_USER: @DB_USER

We found some secrets which where already in use and not overriden:
DB_PASSWORD: @DB_PASSWORD
@david-castaneda david-castaneda added the enhancement New feature or request label May 16, 2021
@david-castaneda david-castaneda changed the title Source environment variables from .env file Source environment variables from .env file when setting secrets May 16, 2021
@david-castaneda david-castaneda changed the title Source environment variables from .env file when setting secrets Source environment variables from .env file when adding deployment secrets May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant