-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Feat/helm extra env from #40173
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/helm extra env from #40173
Conversation
…appsmith pods Signed-off-by: Florian Buchmeier <florian.buchmeier@audi.de>
…s and volume mounts for the appsmith pods Merge in OSSC/appsmith from feat/helm-extra-volume-mounts to release * commit 'b8fa527e4350ea098cc4c2a3acac1658f9f27934': feat: add option to specifiy extra volumes and volume mounts for the appsmith pods
Signed-off-by: Florian Buchmeier <florian.buchmeier@audi.de>
… 'kind: Deployment' Merge in OSSC/appsmith from feat/helm-extra-volume-mounts to release * commit '5a115c381237558330e630fe44ade17573b5f67e': fix: broken extraVolumes indentation with 'kind: Deployment'
…n strategy is 'Recreate' Signed-off-by: Florian Buchmeier <florian.buchmeier@audi.de>
…en: may not be specified when strategy is 'Recreate' Merge in OSSC/appsmith from feat/helm-strategytype-recreate to release * commit '80a0209821a8cc6343ade6e8e26c02a3cda1ee72': fix: spec.strategy.rollingUpdate: Forbidden: may not be specified when strategy is 'Recreate'
…ontainer Signed-off-by: Florian Buchmeier <florian.buchmeier@audi.de>
…appsmith into release
WalkthroughThis pull request enhances the Helm chart deployment template by introducing conditional logic to include additional configuration options. The deployment template now conditionally adds rolling update parameters if the strategy type is set to "RollingUpdate". In addition, the container configuration is extended to conditionally include extra volumes, volume mounts, environment variables, and environment variable sources. The accompanying Changes
Sequence Diagram(s)sequenceDiagram
participant Helm
participant DeploymentTemplate
participant Values
Helm->>Values: Load configuration from values.yaml
Values-->>Helm: Return strategy, extraVolumes, extraEnv, etc.
Helm->>DeploymentTemplate: Evaluate strategyType condition
alt RollingUpdate
DeploymentTemplate->>DeploymentTemplate: Add rollingUpdate (maxSurge, maxUnavailable)
else Default
DeploymentTemplate->>DeploymentTemplate: Proceed with default strategy
end
DeploymentTemplate->>DeploymentTemplate: Conditionally add extraVolumes, extraVolumeMounts, extraEnv, extraEnvFrom
DeploymentTemplate-->>Helm: Generate final deployment manifest
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 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 using PR comments)
Other keywords and placeholders
Documentation and Community
|
Any updates or change requests? |
This PR has not seen activitiy for a while. It will be closed in 7 days unless further activity is detected. |
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
🧹 Nitpick comments (5)
deploy/helm/values.yaml (4)
387-391
: extraVolumes parameter
Introduces an empty list for users to add custom Kubernetes volumes. Consider documenting this field in the chart README to guide users.
392-397
: extraVolumeMounts parameter
Allows mounting those extra volumes into the container. Please add usage examples to the chart documentation for clarity.
460-469
: extraEnv parameter
Enables injection of additional environment variables. Recommend updating README to include this new option and its schema.
470-474
: extraEnvFrom parameter
Supports referencing entire ConfigMaps or Secrets as envFrom sources. Don't forget to document this in the chart's README.deploy/helm/templates/deployment.yaml (1)
21-25
: Conditional rollingUpdate block
Properly includesrollingUpdate
only whenstrategyType
is "RollingUpdate". To complete this feature, consider adding anupdateStrategy
section in values.yaml for users to configuremaxSurge
/maxUnavailable
.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
deploy/helm/templates/deployment.yaml
(4 hunks)deploy/helm/values.yaml
(3 hunks)
🔇 Additional comments (4)
deploy/helm/templates/deployment.yaml (4)
132-134
: Inject extraVolumeMounts
Correctly renders additional volume mounts in the pod spec.
152-154
: Inject extraEnv
Appears to correctly merge user-defined environment variables into the container.
170-172
: Inject extraEnvFrom
Properly appendsenvFrom
entries for ConfigMaps/Secrets.
178-180
: Inject extraVolumes
Correctly adds user-specified volumes to the pod.
This PR has been closed because of inactivity. |
Description
This PR adds two additional options to allow additional environment variables (with env and envFrom) to be added to the appsmith container.
We use this to add additional secrets generated by our controllers (e.g. crossplane aws-provider) as environment variables into the appsmith container.
An example values.yaml could look like this:
If you have any suggestions or questions please let me know.
Best regards,
Florian.
Summary by CodeRabbit