Conversation
WalkthroughAdds support for injecting user-defined extra containers (sidecars) into main, worker, and webhook Helm deployment templates via new Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant HelmChart
participant Kubernetes
User->>HelmChart: Add extraContainers in values.yaml (main/worker/webhook)
HelmChart->>HelmChart: tpl(toYaml(.Values.*.extraContainers)) -> render YAML snippets
HelmChart->>Kubernetes: Apply rendered deployments (pods include extra containers)
Kubernetes-->>User: Pods created with main + extra sidecar containers
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
♻️ Duplicate comments (4)
charts/n8n/values.yaml (2)
451-452: Repeat usage example suggestion. The same guidance for documentingmain.extraContainersapplies here underworker.extraContainers.
639-640: Repeat usage example suggestion. The same guidance for documentingmain.extraContainersapplies here underwebhook.extraContainers.charts/n8n/templates/deployment.worker.yaml (1)
117-119: Repeat Helm templating suggestion. Wrap theextraContainersrendering intplto permit templating inside sidecar definitions, mirroring theinitContainersapproach.charts/n8n/templates/deployment.webhook.yaml (1)
121-123: Repeat Helm templating suggestion. Wrap theextraContainersrendering intplto permit templating inside sidecar definitions, mirroring theinitContainersapproach.
🧹 Nitpick comments (1)
charts/n8n/values.yaml (1)
263-264: Add usage example for extraContainers. It would be helpful to include a commented snippet invalues.yamlshowing how to configure sidecar containers, for example:# extraContainers: # - name: my-sidecar # image: busybox:latest # command: ["sh", "-c", "echo hello"]
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
charts/n8n/templates/deployment.webhook.yaml(1 hunks)charts/n8n/templates/deployment.worker.yaml(1 hunks)charts/n8n/templates/deployment.yaml(1 hunks)charts/n8n/values.yaml(3 hunks)
9f0c559 to
91739cd
Compare
|
anybody here ? |
devshark
left a comment
There was a problem hiding this comment.
I need this to enable cloudsql proxy sidecar
|
+1 for this feature |
LeoDiazL
left a comment
There was a problem hiding this comment.
I would recommend adding a note about this in the README, explaining that this would be a container running in the same pod, and that because of that, Kubernetes expects it to stay running.
|
Need this feature also, thanks @LeoDiazL ! |
|
@ArnaudTA are you able to push this along? if not I can pick it back up in a separate PR and reference this one. I really want to get this merged in. |
e8952e9 to
449d057
Compare
With the help of coderabbit <3
449d057 to
1a9d033
Compare
|
Hello, suggestions applied, are you ok to merge ? |
|
Can we approve and merge this? Really need this feature. edit: For anyone seeing, for my use case, I was able to resolve my issue by using this: |
basic support for extraContainers support.
Totally inspired by the Vault chart:
https://artifacthub.io/packages/helm/hashicorp/vault
Have a good day :)
Summary by CodeRabbit
New Features
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.