From 92648ebf76fe0a8b24fcbebb8671c3a96b338e94 Mon Sep 17 00:00:00 2001 From: Angelo Arboleda Date: Wed, 10 Jan 2024 23:28:49 -0800 Subject: [PATCH] Allow custom annotations --- helm-chart/eoapi/templates/services/ingress-nginx.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/helm-chart/eoapi/templates/services/ingress-nginx.yaml b/helm-chart/eoapi/templates/services/ingress-nginx.yaml index c8078b0f..5d94eb5b 100644 --- a/helm-chart/eoapi/templates/services/ingress-nginx.yaml +++ b/helm-chart/eoapi/templates/services/ingress-nginx.yaml @@ -18,6 +18,9 @@ metadata: {{- if (and (.Values.ingress.tls.enabled) (.Values.ingress.tls.certManager)) }} cert-manager.io/issuer: {{ .Values.ingress.tls.certManagerIssuer }} {{- end }} +{{- if (.Values.ingress.annotations) }} +{{ toYaml .Values.ingress.annotations | indent 4 }} +{{- end }} spec: {{- if (and (.Values.ingress.className) (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion)) }} ingressClassName: {{ .Values.ingress.className }} @@ -105,4 +108,4 @@ spec: class: nginx {{- end }} {{/* END: if .Values.ingress.className "nginx" */}} -{{- end }} \ No newline at end of file +{{- end }}