From 791cbd72bf1a6b4299f7030df79efff6b2ebd7d2 Mon Sep 17 00:00:00 2001 From: David Rochow Date: Fri, 30 Aug 2024 15:21:04 +0200 Subject: [PATCH] fix: fixed ingress helm chart template (#194) --- charts/heureka/templates/ingress.yaml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/charts/heureka/templates/ingress.yaml b/charts/heureka/templates/ingress.yaml index 3085c49c..a061921c 100644 --- a/charts/heureka/templates/ingress.yaml +++ b/charts/heureka/templates/ingress.yaml @@ -7,25 +7,22 @@ metadata: name: {{ $fullName }} labels: {{- include "heureka.labels" . | nindent 4 }} - {{- with .Values.ingress.annotations }} + {{- with .Values.ingress.annotations }} annotations: {{- toYaml . | nindent 4 }} - {{- if and $.Values.global.linkerd_enabled $.Values.global.linkerd_requested }} - ingress.kubernetes.io/service-upstream: "true" - nginx.ingress.kubernetes.io/service-upstream: "true" - {{- end }} {{- end }} spec: -{{- if .Values.ingress.tls }} + {{- if .Values.ingress.tls }} tls: {{- range .Values.ingress.tls }} - hosts: - {{- range .hosts }} + {{- range .hosts }} - {{ . | quote }} - {{- end }} + {{- end }} secretName: {{ .secretName }} {{- end }} -{{- end }} + {{- end }} + ingressClassName: nginx rules: {{- range .Values.ingress.hosts }} - host: {{ .host | quote }} @@ -41,4 +38,4 @@ spec: number: {{ $svcPort }} {{- end }} {{- end }} -{{- end }} +{{- end }} \ No newline at end of file