Skip to content

Conversation

Vad1mo
Copy link
Member

@Vad1mo Vad1mo commented Jun 25, 2025

fixes #167

Summary by CodeRabbit

  • Bug Fixes

    • Fixed an issue with ingress configuration by allowing empty TLS settings, addressing a previous problem with mandatory TLS values.
  • Documentation

    • Updated the examples README with instructions for deploying test setups that require a PostgreSQL database, including guidance on installing the cloudnative-pg operator.
  • Chores

    • Incremented the Helm chart version for n8n to 1.0.11.

Copy link
Contributor

coderabbitai bot commented Jun 25, 2025

Walkthrough

The changes update the Helm chart for the n8n application by incrementing its version, modifying the ingress TLS configuration in the values file to default to an empty list, and updating documentation to guide users on deploying example setups requiring PostgreSQL. No changes to application code or exported entities were made.

Changes

File(s) Change Summary
charts/n8n/Chart.yaml Bumped chart version from 1.0.10 to 1.0.11; updated changelog annotation for ingress TLS fix.
charts/n8n/values.yaml Changed ingress TLS config to default to an empty list; commented out previous example config.
examples/README.md Added section on deploying test examples with PostgreSQL using cloudnative-pg operator.

Assessment against linked issues

Objective Addressed Explanation
Default ingress TLS config is an empty list, with previous example commented out (#167)
Ensure no TLS configuration is applied by default unless explicitly overridden (#167)
Provide clear way to enable/disable ingress TLS via values.yaml or Helm args (#167)

Assessment against linked issues: Out-of-scope changes

Code Change (file_path) Explanation
Added PostgreSQL deployment guidance (examples/README.md) This documentation update is unrelated to ingress TLS configuration changes from issue #167.
✨ Finishing Touches
🧪 Generate Unit Tests
  • Create PR with Unit Tests
  • Post Copyable Unit Tests in Comment
  • Commit Unit Tests in branch fix_allow_empty_tls

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need 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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai auto-generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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)

36-38: Minor typo: “ingres” → “ingress” in annotation

-      description: "allows empty tls for ingres: fixes https://github.com/8gears/n8n-helm-chart/issues/167"
+      description: "Allows empty TLS for ingress – fixes https://github.com/8gears/n8n-helm-chart/issues/167"

Correct spelling improves searchability in Artifact Hub and changelogs.

examples/README.md (1)

18-34: Fix wording and grammar in the new “Test Examples” section

Several small issues were flagged (e.g. “text” vs “test”, missing prepositions).
Suggested patch:

-## Test Examples
-
-If you want to text or deploy this examples with postgresdb, we recommend the use
-cloudnative-pg.
+## Test Examples
+
+If you want to **test** or deploy these examples with a PostgreSQL database, we
+recommend using CloudNative-PG.
@@
-See [installation guide](https://cloudnative-pg.io/documentation/1.26/installation_upgrade/) for all details.
+See the [installation guide](https://cloudnative-pg.io/documentation/1.26/installation_upgrade/) for full details.

This addresses the LanguageTool hints and improves readability.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7440939 and 7c07194.

📒 Files selected for processing (3)
  • charts/n8n/Chart.yaml (2 hunks)
  • charts/n8n/values.yaml (1 hunks)
  • examples/README.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
examples/README.md

[uncategorized] ~22-~22: The determiner “these” seems more likely in this context.
Context: ...Examples If you want to text or deploy this examples with postgresdb, we recommend ...

(AI_EN_LECTOR_REPLACEMENT_DETERMINER)


[uncategorized] ~22-~22: “the” seems less likely than “to”.
Context: ... examples with postgresdb, we recommend the use cloudnative-pg. The full and `sm...

(AI_HYDRA_LEO_CP_THE_TO)


[uncategorized] ~22-~22: Possible missing preposition found.
Context: ...s with postgresdb, we recommend the use cloudnative-pg. The full and small-prod exampl...

(AI_HYDRA_LEO_MISSING_OF)

🔇 Additional comments (2)
charts/n8n/values.yaml (1)

43-46: Consider omitting the tls field entirely instead of setting an empty list

Helm’s Go templates typically guard the tls block with
{{- if .Values.ingress.tls }}.
An empty list ([]) evaluates to false, so the rendered manifest will still omit the tls: section – which is what you want. However, if a downstream consumer sets ingress.tls via --set ingress.tls= (resulting in the literal string "") you might end up with:

tls: ""

which is invalid Kubernetes syntax and will break kubectl apply.

Diff suggestion (purely cosmetic, but safer):

-  tls: []
+# tls: []

Commenting the key out avoids accidental misuse while keeping the example handy.

Check that the ingress template uses {{- if .Values.ingress.tls }} (and not {{- if hasKey .Values.ingress "tls" }}) so the behaviour remains unchanged.

charts/n8n/Chart.yaml (1)

3-3: Chart version bump looks good

Version increased to 1.0.11, matching SemVer expectations for a bug-fix.
No additional action required.

@Vad1mo Vad1mo merged commit 29388cc into main Jun 25, 2025
4 checks passed
@Vad1mo Vad1mo deleted the fix_allow_empty_tls branch June 25, 2025 11:04
joshuabaird pushed a commit to joshuabaird/n8n-helm-chart that referenced this pull request Aug 20, 2025
* fix: allow empty tls configuration for ingress

* fix: update values.yaml to allow empty tls configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[NO-TICKET] chore: Update Ingress values

1 participant