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

Being able to set environment variables using 'envFrom' #397

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SmaineTF1
Copy link
Contributor

@SmaineTF1 SmaineTF1 commented Jun 23, 2023

What was changed

Add the ability to define environment variables that come from configmaps or secrets

Why?

Make use of envFrom is pretty handy when, for instance you have all the environment variables defined in Secrets or Configmaps.
That way we only need to have this bit of code if we have all the config env vars in a secret

web:
  additionalEnvSecret: 
    - "temporal-web-envvars"

@SmaineTF1 SmaineTF1 requested review from a team as code owners June 23, 2023 14:01
@CLAassistant
Copy link

CLAassistant commented Jun 23, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@mindaugasrukas mindaugasrukas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

templates/server-deployment.yaml Show resolved Hide resolved
@SmaineTF1
Copy link
Contributor Author

What about this PR? Do you need anything else?

@sgrzemski
Copy link

+1 to that.
@SmaineTF1 could you please fix the semgrep, so that @XaF @underrun or @mindaugasrukas can merge it?

@SmaineTF1
Copy link
Contributor Author

@sgrzemski sorry, I'm confused but what should I do for that check? This is not obvious to me :/

@sgrzemski
Copy link

@SmaineTF1 :
image
Sorry, I thought it was in a failed state, but it's just queued to be triggerred manually.

@SmaineTF1
Copy link
Contributor Author

Should I do something anyway @sgrzemski please?

Copy link
Contributor

@robholland robholland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the submission, happy to work with you on getting this merged. Please can you rebase this against master.

@@ -84,6 +84,8 @@ server:
additionalVolumes: []
additionalVolumeMounts: []
additionalEnv: []
additionalEnvCM: []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use additionalEnvConfigMap rather than using a contraction.

@robholland robholland added enhancement New feature or request needs revision Team has requested some changes labels Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs revision Team has requested some changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants