-
Notifications
You must be signed in to change notification settings - Fork 203
Change default service name to prevent conflic with N8N_PORT #213
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "n8n.fullname" . }} | ||
name: {{ include "n8n.fullname" . }}-svc | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainRenaming breaks remaining unsuffixed references – update them or expect 503s Changing the Service name to 🏁 Script executed: #!/bin/bash
# Find all unsuffixed service references in the chart
fullname='{{[[:space:]]*include[[:space:]]+"n8n.fullname"[[:space:]]*\.[[:space:]]*}}'
rg -n "$fullname" charts/n8n/templates | grep -v '\-svc' || true Length of output: 371 🏁 Script executed: #!/usr/bin/env bash
# Find all literal Helm include calls of n8n.fullname missing the "-svc" suffix
rg -n '{{ include "n8n.fullname" . }}' charts/n8n/templates | grep -v '\-svc' || true Length of output: 192 🏁 Script executed: #!/usr/bin/env bash
# Search for literal Helm fullname includes missing the "-svc" suffix using fixed string matching
rg -F '{{ include "n8n.fullname" . }}' -n charts/n8n/templates/*.yaml | grep -v -- '-svc' || true Length of output: 2925 🏁 Script executed: #!/usr/bin/env bash
# Inspect ingress.yaml around expected service reference
sed -n '40,80p' charts/n8n/templates/ingress.yaml Length of output: 1307 Update the ingress service reference to include the “-svc” suffix The Service name was changed to • charts/n8n/templates/ingress.yaml (around line 53) - backend:
service:
- name: {{ $fullName }}
+ name: {{ $fullName }}-svc No other literal service references to 🤖 Prompt for AI Agents
|
||
labels: | ||
{{- include "n8n.labels" . | nindent 4 }} | ||
{{- with .Values.main.service.annotations }} | ||
|
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.
🛠️ Refactor suggestion
Only the root path was updated –
/webhook-test/
still points to a non-existent serviceThe backend for the root path now targets
{{ $fullName }}-svc
, but the/webhook-test/
rule (line 53) still targets{{ $fullName }}
. After this rename, manual-execution webhooks will return 503. Align all paths that should hit the main process:🤖 Prompt for AI Agents