From fdbf1c2b864a28e4b88cef0992685f0bcee69dfa Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Wed, 19 Apr 2023 18:21:14 +0200 Subject: [PATCH] chore(helm): Annotation inject order Signed-off-by: rjshrjndrn --- .../openreplay/charts/http/templates/ingress.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/helmcharts/openreplay/charts/http/templates/ingress.yaml b/scripts/helmcharts/openreplay/charts/http/templates/ingress.yaml index 761f97b66..1a936095c 100644 --- a/scripts/helmcharts/openreplay/charts/http/templates/ingress.yaml +++ b/scripts/helmcharts/openreplay/charts/http/templates/ingress.yaml @@ -9,14 +9,14 @@ metadata: labels: {{- include "http.labels" . | nindent 4 }} annotations: + {{- with .Values.ingress.annotations }} + {{- toYaml . | nindent 4 }} + {{- end }} nginx.ingress.kubernetes.io/rewrite-target: /$1 nginx.ingress.kubernetes.io/upstream-hash-by: $http_x_forwarded_for nginx.ingress.kubernetes.io/enable-cors: "true" nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,Content-Encoding,Content-Length" nginx.ingress.kubernetes.io/cors-expose-headers: "Content-Length" - {{- with .Values.ingress.annotations }} - {{- toYaml . | nindent 4 }} - {{- end }} spec: ingressClassName: "{{ tpl .Values.ingress.className . }}" tls: