Remove $fullName var from ingress templates
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
{{- if .Values.n8n.ingress.enabled -}}
|
||||
{{- $fullName := include "n8n.fullname" . -}}
|
||||
{{- $svcPort := .Values.n8n.service.port -}}
|
||||
{{- if and .Values.n8n.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
|
||||
{{- if not (hasKey .Values.n8n.ingress.annotations "kubernetes.io/ingress.class") }}
|
||||
@ -15,7 +14,7 @@ apiVersion: extensions/v1beta1
|
||||
{{- end }}
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ $fullName }}
|
||||
name: {{ include "n8n.fullname" . }}
|
||||
labels:
|
||||
{{- include "n8n.labels" . | nindent 4 }}
|
||||
{{- with .Values.n8n.ingress.annotations }}
|
||||
@ -47,11 +46,11 @@ spec:
|
||||
backend:
|
||||
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||
service:
|
||||
name: {{ $fullName }}
|
||||
name: {{ include "n8n.fullname" . }}
|
||||
port:
|
||||
number: {{ $svcPort }}
|
||||
{{- else }}
|
||||
serviceName: {{ $fullName }}
|
||||
serviceName: {{ include "n8n.fullname" . }}
|
||||
servicePort: {{ $svcPort }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
@ -1,5 +1,4 @@
|
||||
{{- if .Values.webhook.ingress.enabled -}}
|
||||
{{- $fullName := include "n8n.fullname" . -}}
|
||||
{{- $svcPort := .Values.webhook.service.port -}}
|
||||
{{- if and .Values.webhook.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
|
||||
{{- if not (hasKey .Values.webhook.ingress.annotations "kubernetes.io/ingress.class") }}
|
||||
@ -15,7 +14,7 @@ apiVersion: extensions/v1beta1
|
||||
{{- end }}
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ $fullName }}-webhook
|
||||
name: {{ include "n8n.fullname" . }}-webhook
|
||||
labels:
|
||||
{{- include "n8n.labels" . | nindent 4 }}
|
||||
{{- with .Values.webhook.ingress.annotations }}
|
||||
@ -47,11 +46,11 @@ spec:
|
||||
backend:
|
||||
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||
service:
|
||||
name: {{ $fullName }}
|
||||
name: {{ include "n8n.fullname" . }}-webhook
|
||||
port:
|
||||
number: {{ $svcPort }}
|
||||
{{- else }}
|
||||
serviceName: {{ $fullName }}
|
||||
serviceName: {{ include "n8n.fullname" . }}-webhook
|
||||
servicePort: {{ $svcPort }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
Reference in New Issue
Block a user