-
Notifications
You must be signed in to change notification settings - Fork 42
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
Documentation about using environment variables with Fission functions #81
Comments
I have found out some details about setting up environment variables https://docs.fission.io/docs/usage/function/access-secret-cfgmap-in-function/ I am curious about the part where i need to use file system Can someone help me to understand if i am correct or wrong ? |
Hi @Stradivario You will have to do to lazyloading for secrets/configmaps values unless you have a requirement of it reading every time. You will have to read values as per your secret or configmap reference. As mentioned here, If you are looking for adding env variables directly currently editing podSpec is one of the way. Though it requires familiarity with Kubernetes and CRDs. We are certainly looking for a native way to inject env variables apart from secret/configmap reference. |
@sanketsudake thank you for the brief explanation it helps me a lot to understand the actual fission system. With this approach editing the podSpec sounds cool but it breaks the usage of the platform as Multi Tenant. What i mean is that if we want every lambda to be configurable per project based we will be in the situation where we have the same environment variables present inside every lambda on every project leading to mixed configurations. So to mitigate this the approach with secrets and configs is more understandable reading them from the file system since that way we can specify different environments per lambda based. Cheers ! |
Users often get confused if they can use environment variables with Fission functions.
Based on yes/no we should document it accordingly and provide samples/details.
The text was updated successfully, but these errors were encountered: