-
Notifications
You must be signed in to change notification settings - Fork 203
Fix: prevent workers restart when valkey configuration is updated #215
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe changes update the Helm chart version and changelog for the n8n application and refine how the worker deployment's configuration checksum is calculated. The checksum now considers only specific configuration sections, rather than the entire values object, to determine when worker pods should restart. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
✨ Finishing Touches🧪 Generate unit tests
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:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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
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
🧹 Nitpick comments (2)
charts/n8n/Chart.yaml (1)
37-38
: Improve changelog grammar for clarity.Current wording is slightly awkward (“prevent workers restart”). Consider:
- description: "prevent workers restart when Valkey configuration is updated: fixes https://github.com/8gears/n8n-helm-chart/issues/214" + description: "Prevent worker restarts when the Valkey configuration is updated (fixes #214)."charts/n8n/templates/deployment.worker.yaml (1)
32-34
: Potential key-collision inmerge
, consider safer construction.
merge .Values.main .Values.worker .Values.webhook
flattens the three maps and overwrites duplicate keys with the right-most value, which can hide changes and prevent intended restarts (e.g.,config.n8n
present in bothmain
andworker
).
Safer pattern:- checksum/config: {{ merge .Values.main .Values.worker .Values.webhook | toJson | sha256sum }} + # keep sub-objects separate to avoid key collisions + checksum/config: {{ toJson (dict "main" .Values.main "worker" .Values.worker "webhook" .Values.webhook) | sha256sum }}This still excludes
valkey
while guaranteeing that identical keys in different sections are both tracked.Ensure no templating regressions by running a Helm diff/render against representative values files.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
charts/n8n/Chart.yaml
(2 hunks)charts/n8n/templates/deployment.worker.yaml
(1 hunks)
🔇 Additional comments (1)
charts/n8n/Chart.yaml (1)
3-3
: Chart version bump looks correct.Incrementing
version
from1.0.11
to1.0.12
follows SemVer for a patch-level fix.
No action required.
A quick fix for #214. The checksum is no longer dependent on Valkey configuration changes, i.e. services are decoupled.
Summary by CodeRabbit
Bug Fixes
Chores