-
Notifications
You must be signed in to change notification settings - Fork 102
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
feat: add envfrom into deployments to enable loading entire secrets or configMaps into container ENV_VARs #109
base: main
Are you sure you want to change the base?
Conversation
…r configMaps into container ENV_VARs Signed-off-by: Marcel Dias <[email protected]>
WalkthroughThe changes involve adding Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (4)
- charts/n8n/templates/deployment.webhooks.yaml (1 hunks)
- charts/n8n/templates/deployment.worker.yaml (1 hunks)
- charts/n8n/templates/deployment.yaml (1 hunks)
- charts/n8n/values.yaml (1 hunks)
Additional comments not posted (4)
charts/n8n/templates/deployment.webhooks.yaml (1)
59-62
: Review ofenvFrom
block additionThe addition of the
envFrom
block to load environment variables from external sources like ConfigMaps or Secrets is implemented correctly. This change should help in reducing the boilerplate needed to map each environment variable individually and supports better secrets management practices.charts/n8n/templates/deployment.worker.yaml (1)
59-62
: Review ofenvFrom
block addition in worker deploymentThe
envFrom
block has been correctly added to the worker deployment template, allowing for the seamless integration of environment variables from ConfigMaps or Secrets. This change aligns with best practices for managing environment variables in Kubernetes deployments.charts/n8n/templates/deployment.yaml (1)
70-73
: Review ofenvFrom
block addition in main deploymentThe
envFrom
block has been correctly integrated into the main deployment template. This facilitates the loading of all keys from a ConfigMap or Secret as environment variables, which is particularly useful when dealing with multiple environment variables that are managed externally.charts/n8n/values.yaml (1)
119-122
: Review ofenvFrom
section removalThe removal of the
envFrom
section from thevalues.yaml
file simplifies the Helm chart by removing unused or commented-out configurations. This change should make the chart cleaner and reduce confusion. However, it's important to ensure that all necessary configurations are still possible through other means provided in the Helm chart.
update of readme is needed, to indicated this possibility. |
feat: add envFrom into deployments to enable loading entire secrets or configMaps into container ENV_VARs
Scenario:
I use ExternalSecrets to fetch ENV_VARs from AWS SSM ParameterStore and create k8s secrets. Using envFrom is possible to load the entire secret without mapping key by key.
Summary by CodeRabbit
New Features
Chores