Skip to content

Commit 791f866

Browse files
committed
Add CORS to graph-proxy deployment chart
1 parent 1caa5f1 commit 791f866

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

charts/graph-proxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: graph-proxy
33
description: A GraphQL proxy for the Argo Workflows Server
44
type: application
5-
version: 0.1.0
5+
version: 0.2.0
66
appVersion: 0.1.0-rc20
77
dependencies:
88
- name: common

charts/graph-proxy/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ spec:
5050
- name: TRACING_ENDPOINT
5151
value: {{ . }}
5252
{{- end }}
53+
{{- with .Values.cors.matchOrigins }}
54+
- name: CORS_ALLOW
55+
value: {{ . | join " " }}
56+
{{- end }}
5357
ports:
5458
- name: graphql
5559
containerPort: 80

charts/graph-proxy/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ telemetry:
2929
metricsEndpoint: ""
3030
tracingEndpoint: ""
3131

32+
cors:
33+
matchOrigins:
34+
- ^https:\/\/([a-zA-Z0-9\-]+\.)*diamond\.ac\.uk\/?
35+
- ^https?:\/\/localhost(:\d+)?\/?
36+
3237
service:
3338
create: true
3439
annotations: []

0 commit comments

Comments
 (0)