From 3374dfd8f9392b8a1123730111ae9d3c93ec12fc Mon Sep 17 00:00:00 2001 From: Justin Kreller Date: Mon, 28 Apr 2025 21:02:59 +0200 Subject: [PATCH] fix: change ingress annotation inclusion from values.yaml --- charts/templates/ingress-https-redirect.yaml | 6 ++---- charts/templates/ingress-https.yaml | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/charts/templates/ingress-https-redirect.yaml b/charts/templates/ingress-https-redirect.yaml index f456183..3ba7a90 100644 --- a/charts/templates/ingress-https-redirect.yaml +++ b/charts/templates/ingress-https-redirect.yaml @@ -5,11 +5,9 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{- include "htwkalender.labels" . | nindent 4 }} - {{- if .Values.ingress.httpsRedirect.annotations }} + {{- with .Values.ingress.httpsRedirect.annotations }} annotations: - {{ toYaml .Values.ingress.httpsRedirect.annotations | nindent 4 }} - {{- else }} - annotations: [] + {{- toYaml . | nindent 4 }} {{- end }} spec: ingressClassName: "PLACEHOLDER" diff --git a/charts/templates/ingress-https.yaml b/charts/templates/ingress-https.yaml index d096e55..3ce4eb6 100644 --- a/charts/templates/ingress-https.yaml +++ b/charts/templates/ingress-https.yaml @@ -5,11 +5,9 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{- include "htwkalender.labels" . | nindent 4 }} - {{- if .Values.ingress.https.annotations }} + {{- with .Values.ingress.https.annotations }} annotations: - {{ toYaml .Values.ingress.https.annotations | nindent 4 }} - {{- else }} - annotations: [] + {{- toYaml . | nindent 4 }} {{- end }} spec: ingressClassName: "PLACEHOLDER"