Skip to content

Commit d0ee298

Browse files
authored
feat: added cors for ouath2-proxy ingress (#1799)
1 parent 6782421 commit d0ee298

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

helmfile.d/snippets/defaults.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1324,6 +1324,7 @@ environments:
13241324
hasExternalIDP: false
13251325
isMultitenant: true
13261326
nodeSelector: {}
1327+
isPreInstalled: false
13271328
users: []
13281329
e2e:
13291330
enabled: false

values/oauth2-proxy/oauth2-proxy-raw.gotmpl

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ resources:
1111
metadata:
1212
annotations:
1313
externaldns: "true"
14+
{{- with $v.otomi.isPreInstalled }}
15+
nginx.ingress.kubernetes.io/cors-allow-origin: "https://cloud.linode.com,https://cloud.staging.linode.com,https://cloud.dev.linode.com"
16+
nginx.ingress.kubernetes.io/enable-cors: "true"
17+
nginx.ingress.kubernetes.io/cors-allow-methods: "GET,OPTIONS"
18+
{{- end }}
1419
{{- with $v | get "dns.provider.linode" nil }}
1520
# Check Linode Api documentation for allowed values in seconds: https://developers-linode.netlify.app/api/v4/domains
1621
external-dns.alpha.kubernetes.io/ttl: "1h"

0 commit comments

Comments
 (0)