Skip to content
Snippets Groups Projects
Commit fbcef7dd8ac5 authored by Xavier Garnier's avatar Xavier Garnier :bicyclist:
Browse files

feat(ingress): add corsAllowOrigin values to set cors annotations

parent ae06f1bbee9d
No related branches found
No related tags found
1 merge request!9Topic/default/improvments
......@@ -15,6 +15,10 @@
{{- with .Values.ingress.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.ingress.corsAllowOrigin }}
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-origin: "{{ .Values.ingress.corsAllowOrigin }}"
{{- end}}
{{- $noindex := .Values.ingress.noindex | required ".Values.ingress.noindex is required." -}}
{{- if .Values.ingress.noindex }}
nginx.ingress.kubernetes.io/server-snippet: |-
......
......@@ -64,6 +64,7 @@
path: /
annotations: {}
# noindex: true
corsAllowOrigin: false # can be false, "*", "toto.example.org" …
# Additional ingresses
additionalIngresses: []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment