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"