From a7a009084c0dc0b74772a1f3bee56829af6a8205 Mon Sep 17 00:00:00 2001 From: 23kbps <86248851+23kbps@users.noreply.github.com> Date: Sat, 3 May 2025 15:28:18 +0700 Subject: [PATCH] Fix ingress template in helm chart --- helm/templates/interactsh-ingress.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/helm/templates/interactsh-ingress.yaml b/helm/templates/interactsh-ingress.yaml index 9c80eb4fe..58cc3701d 100644 --- a/helm/templates/interactsh-ingress.yaml +++ b/helm/templates/interactsh-ingress.yaml @@ -1,6 +1,7 @@ {{- if .Values.interactsh.ingress.enabled -}} {{- $fullName := include "nuclei.fullname" . -}} -{{- $svcPort := .Values.service.port -}} +{{- $svcPort := .Values.interactsh.service.port -}} +{{- $svcName := .Values.interactsh.service.name -}} {{- if and .Values.interactsh.ingress.className (not (semverCompare ">=1.20-0" .Capabilities.KubeVersion.GitVersion)) }} {{- if not (hasKey .Values.interactsh.ingress.annotations "kubernetes.io/ingress.class") }} {{- $_ := set .Values.interactsh.ingress.annotations "kubernetes.io/ingress.class" .Values.interactsh.ingress.className}} @@ -49,11 +50,11 @@ spec: backend: {{- if semverCompare ">=1.20-0" $.Capabilities.KubeVersion.GitVersion }} service: - name: {{ $fullName }} + name: {{ $svcName }} port: number: {{ $svcPort }} {{- else }} - serviceName: {{ $fullName }} + serviceName: {{ $svcName }} servicePort: {{ $svcPort }} {{- end }} {{- end }}