-
Notifications
You must be signed in to change notification settings - Fork 69
fix(ingress): support optional tls secretName and dynamic backend port in template #706
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
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe changes update the ingress YAML templates for both the Community Edition and Enterprise Edition Helm charts. The TLS configuration was modified to include the Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (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. 🪧 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 (4)
helm-charts/mend-renovate-ee/templates/ingress.yaml (2)
28-30
: QuotesecretName
for safety
Although the conditional guard prevents empty values, wrapping.secretName
inquote
ensures any special characters or dashes are handled correctly by the YAML parser.- {{- if .secretName }} - secretName: {{ .secretName }} - {{- end }} + {{- if .secretName }} + secretName: {{ .secretName | quote }} + {{- end }}
45-49
: Usenindent
for multi-line port mappings
Applyingindent
to the output oftoYaml
can misalign nested YAML when$p.port
expands to multiple lines. Prefernindent
to include the leading newline and correct indentation level.- {{- if $p.port }} - {{ toYaml $p.port | indent 8 }} - {{- else }} - name: http - {{- end }} + {{- if $p.port }} + {{ toYaml $p.port | nindent 12 }} + {{- else }} + name: http + {{- end }}helm-charts/mend-renovate-ce/templates/ingress.yaml (2)
28-30
: QuotesecretName
for safety
Mirroring the EE chart, quoting.secretName
avoids YAML parsing errors if the secret name contains special characters.- {{- if .secretName }} - secretName: {{ .secretName }} - {{- end }} + {{- if .secretName }} + secretName: {{ .secretName | quote }} + {{- end }}
45-49
: Switch tonindent
for robust port rendering
Usingindent
ontoYaml
output may break nested structures. Replace withnindent
to ensure the port block stays correctly indented, especially when$p.port
has multiple lines.- {{- if $p.port }} - {{ toYaml $p.port | indent 8 }} - {{- else }} - name: http - {{- end }} + {{- if $p.port }} + {{ toYaml $p.port | nindent 10 }} + {{- else }} + name: http + {{- end }}
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
helm-charts/mend-renovate-ce/templates/ingress.yaml
(2 hunks)helm-charts/mend-renovate-ee/templates/ingress.yaml
(2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
`**/*`: - Feedback will only be given on issues that could cause bugs or involve very bad practices. - Comments will be kept concise and focused on critical areas.
**/*
: - Feedback will only be given on issues that could cause bugs or involve very bad practices.
- Comments will be kept concise and focused on critical areas.
helm-charts/mend-renovate-ce/templates/ingress.yaml
helm-charts/mend-renovate-ee/templates/ingress.yaml
Changes
Support optional tls secretName and dynamic backend port in template
this allows for configuring TLS passthrough via SNI, with TLS termination handled by the backend service.
Example Configuration
values.yaml
with
mend-renovate-enterprise-edition
andingress-nginx
as subchart dependencies:Summary by CodeRabbit
Summary by CodeRabbit