Skip to content

Commit

Permalink
fix: Add default port when undefined (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominykasn authored Feb 19, 2025
1 parent 1d7babc commit bb609e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/n8n/templates/deployment.webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
{{- end }}
ports:
- name: http
containerPort: {{ get .Values.webhook.config "port" | default 5678 }}
containerPort: {{ get (default (dict) .Values.webhook.config) "port" | default 5678 }}
protocol: TCP
{{- with .Values.webhook.livenessProbe }}
livenessProbe:
Expand Down
2 changes: 1 addition & 1 deletion charts/n8n/templates/deployment.worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ spec:
{{- end }}
ports:
- name: http
containerPort: {{ get .Values.worker.config "port" | default 5678 }}
containerPort: {{ get (default (dict) .Values.worker.config) "port" | default 5678 }}
protocol: TCP
{{- with .Values.main.livenessProbe }}
livenessProbe:
Expand Down
4 changes: 2 additions & 2 deletions charts/n8n/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
- secretRef:
name: app-secret-{{ include "n8n.fullname" . }}
{{- end }}
env: {{ not (empty .Values.main.extraEnv) | ternary nil "[]" }}
env: {{ not (empty .Values.main.extraEnv) | ternary nil "[]" }}
{{- range $key, $value := .Values.main.extraEnv }}
- name: {{ $key }}
{{- toYaml $value | nindent 14 }}
Expand All @@ -74,7 +74,7 @@ spec:
{{- toYaml .Values.main.lifecycle | nindent 12 }}
ports:
- name: http
containerPort: {{ get .Values.main.config "port" | default 5678 }}
containerPort: {{ get (default (dict) .Values.main.config) "port" | default 5678 }}
protocol: TCP
{{- with .Values.main.livenessProbe }}
livenessProbe:
Expand Down

0 comments on commit bb609e8

Please sign in to comment.