fix: Update ingress.yaml to point to onmApiApplicationPort

Change-Id: I0700f53824320333de44efec3208981cc0c58f9e
This commit is contained in:
George Kitsos 2024-05-14 16:27:06 +03:00
parent 1e9f7ece68
commit bafd3532d9

View File

@ -1,6 +1,6 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "nebulous-overlay-network-manager.fullname" . -}} {{- $fullName := include "nebulous-overlay-network-manager.fullname" . -}}
{{- $svcPort := .Values.service.port -}} {{- $svcPort := .Values.service.onmApiApplicationPort -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} {{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }} {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}} {{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}