From b394806552624c2e8947052cbf0e6989fed6e48c Mon Sep 17 00:00:00 2001 From: "d.viti" Date: Thu, 9 Oct 2025 21:09:40 +0200 Subject: [PATCH] Refactor ingress annotations to include dns-scope conditionally --- helm/api7ee-demo-k8s/templates/ingress.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/helm/api7ee-demo-k8s/templates/ingress.yaml b/helm/api7ee-demo-k8s/templates/ingress.yaml index 99b8ea3..c6b30ae 100644 --- a/helm/api7ee-demo-k8s/templates/ingress.yaml +++ b/helm/api7ee-demo-k8s/templates/ingress.yaml @@ -5,10 +5,13 @@ metadata: name: {{ include "api7ee.fullname" . }} labels: {{- include "api7ee.labels" . | nindent 4 }} - {{- with .Values.ingress.annotations }} annotations: + {{- if .Values.ingress.dnsScope }} + dns-scope: {{ .Values.ingress.dnsScope | quote }} + {{- end }} + {{- with .Values.ingress.annotations }} {{- toYaml . | nindent 4 }} - {{- end }} + {{- end }} spec: {{- if .Values.ingress.className }} ingressClassName: {{ .Values.ingress.className }}