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
Changing environment variables across multiple YAML file #587
Comments
Following up on our conversation on Slack. Please investigate whether using an
Contents of environment_file:
- ../envFile.yml Contents of
Deploy it:
Exec into resulting container:
|
Derek add label: support |
Thanks! I will discuss this with team members and get back to you. |
@anubhabMajumdar Can we assume that since there is no update this is no longer an issue and so can be closed? |
Yes. Thank you. This worked out for our project. |
Expected Behaviour
I have a unique problem, I couldn’t find anything online specific to this.
I am using environment variables to provide
db-name
andcollection-name
for mongoDB. I have multiplestack.yml
files which injectsdb-name
to multiple functions. This works great.Now, here is the problem - let’s say I want to switch the DB from
dev
totest
. One way is to manually change thestack.yml
files, but that is not feasible as the project grows. I wish there is some centralconfig
file from which thestack.yml
could read thedb
values, but I am not sure YAML supports it. Also, I though about creating something in kubernetes like secrets and let the function read it, but again, I am not sure that’s exactly what we want. It seems a hassle to change such variables deployed in Kubernetes every time.Do you have some suggestion about this? Specifically:
faas-cli
commands that can be used for this scenario?Your Environment
faas-netes
.The text was updated successfully, but these errors were encountered: