-
Notifications
You must be signed in to change notification settings - Fork 221
[#251] Removed hardcoded pathType: Prefix #271
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
Conversation
WalkthroughSwitch ingress path entries from bare strings to structured objects with Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (7)
🚧 Files skipped from review as they are similar to previous changes (6)
🔇 Additional comments (2)
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
charts/n8n/templates/ingress.yaml (1)
42-43: Consider documenting webhook path concatenation behavior.The webhook paths (lines 42, 50, 57, 64) concatenate the base path with suffixes:
{{ .path }}webhook/,{{ .path }}webhook-test/, etc. This works correctly for the root path (/), but non-root paths may produce unexpected results (e.g.,path: /apiyields/apiwebhook/instead of/api/webhook/). While likely acceptable as the root path is the primary use case, a template comment clarifying this behavior would prevent user confusion.Example clarifying comment:
{{- range .paths }} - path: {{ .path }} pathType: {{ .pathType }} backend: service: name: {{ $fullName }} port: number: {{ $.Values.main.service.port | default 80 }} {{- if $.Values.webhook.enabled }} + # Webhook paths are concatenated with the base path - path: {{ .path }}webhook/ pathType: {{ .pathType }}Also applies to: 50-51, 57-58, 64-65
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (7)
README.md(1 hunks)charts/n8n/Chart.yaml(2 hunks)charts/n8n/templates/NOTES.txt(1 hunks)charts/n8n/templates/ingress.yaml(1 hunks)charts/n8n/values.yaml(1 hunks)examples/values_full.yaml(1 hunks)examples/values_small_prod.yaml(1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-09-02T08:05:39.372Z
Learnt from: tsch157
Repo: 8gears/n8n-helm-chart PR: 239
File: charts/n8n/Chart.yaml:3-4
Timestamp: 2025-09-02T08:05:39.372Z
Learning: n8n 1.110.0 is a pre-release version and should not be used in production deployments. Always verify if a version is stable before recommending upgrades in the n8n Helm chart.
Applied to files:
charts/n8n/Chart.yaml
🔇 Additional comments (6)
README.md (1)
130-143: Good documentation alignment with config changes.The commented example at lines 138–139 clearly illustrates the new explicit
pathandpathTypeobject structure, helping users understand the ingress configuration format.charts/n8n/values.yaml (1)
42-44: Clear, functional default for ingress paths.The explicit
path: /andpathType: Prefixstructure provides sensible defaults while enabling users to customizepathTypefor their ingress controller. This directly addresses issue #251 by allowing flexibility instead of hardcoding.charts/n8n/Chart.yaml (1)
3-3: Appropriate versioning and changelog entry.The version bump to 1.1.1 and updated
artifacthub.io/changesannotation accurately reflect the ingress schema change, making the modification visible in package registries.Also applies to: 37-38
examples/values_full.yaml (1)
109-111: Example correctly demonstrates new path structure.The production example properly illustrates the explicit
pathandpathTypeobject format, providing users with a clear reference implementation.charts/n8n/templates/NOTES.txt (1)
4-5: Template correctly accesses path field.The change from
{{ . }}to{{ .path }}properly extracts the path string from the new path object structure, maintaining correct URL generation in deployment notes.charts/n8n/templates/ingress.yaml (1)
34-35: Ingress template correctly implements configurable pathType.The template now uses
{{ .path }}and{{ .pathType }}to consume path objects, enabling users to configurepathTypefor different ingress controllers as intended. All path rules—main service, webhook routes, and form handlers—consistently apply the configuredpathType.Also applies to: 42-43, 50-51, 57-58, 64-65
ab9877b to
e0caa81
Compare
…gears#251) Changed the ingress logic to allow different types of pathType in place of the hardcoded 'pathType: Prefix'
e0caa81 to
693feb3
Compare
|
Just want to say that this is breaking change. But it was released as hotfix. @Vad1mo |
I am sorry; I didn't expect that. What was the breaking change in that case? Was it this one here? |
|
Yes |
|
sorry, nobody paid attention to backwards compatiblitly, and it slipped on my too. I make not in the relese notes at least |
Changed the ingress logic to allow different types of pathType in place of the hardcoded 'pathType: Prefix'
What this PR does / why we need it
In the current version, the pathType elements in the ingress object are hardcoded to
pathType: Prefix.This PR aligns the chart to the best practices, allowing to define a different type of pathType, as
Prefixmight be incompatible with some ingress controllers.Which issue this PR fixes
Fixes #251
Special notes for your reviewer
Checklist
Please place an 'x' in all applicable fields and remove unrelated items.
Version and Documentation
Chart.yamlfollowing semantic versioningChart.yamlif applicableartifacthub.io/changessection updated inChart.yaml(see ArtifactHub annotation reference)README.mdTesting and Validation
ah lintlocally without errorsct lint --chart-dirs charts/n8n --charts charts/n8n --validate-maintainers=false/examplesdirectorySummary by CodeRabbit
New Features
Chores
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.