Skip to content

Commit 4f9b9ad

Browse files
committed
wip: checkpoint - first deploy
1 parent 42cc6c0 commit 4f9b9ad

File tree

4 files changed

+9
-46
lines changed

4 files changed

+9
-46
lines changed

chart/templates/custom-errors.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ spec:
99
tls:
1010
- hosts:
1111
- '{{ .Values.ingress.hostname }}'
12-
secretName: ndslabs-tls
12+
secretName: {{ .Values.ingress.tls.secretName }}
1313
rules:
1414
- host: '{{ .Values.ingress.hostname }}'
1515
http:

chart/templates/middleware.yaml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,3 @@
1-
{{- if .Values.config.corsHeader.enabled }}
2-
apiVersion: traefik.io/v1alpha1
3-
kind: Middleware
4-
metadata:
5-
name: {{ .Values.config.corsHeader.name }}
6-
spec:
7-
headers:
8-
accessControlAllowCredentials: true
9-
accessControlAllowHeaders:
10-
- Origin
11-
- X-Requested-With
12-
- X-Retry-In
13-
- Retry-After
14-
- Content-Type
15-
- content-type
16-
- Accept
17-
- Authorization
18-
accessControlAllowMethods:
19-
- GET
20-
- OPTIONS
21-
- PUT
22-
- DELETE
23-
- POST
24-
- PATCH
25-
accessControlAllowOriginList:
26-
- '{{ .Values.config.corsHeader.allowedOrigins }}'
27-
accessControlExposeHeaders:
28-
- X-Retry-In
29-
- Retry-After
30-
---
31-
{{- end }}
321
apiVersion: traefik.io/v1alpha1
332
kind: Middleware
343
metadata:

chart/values.amr.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
replicaCount: 1
66

77
config:
8-
# URL where we should route user to sign in (e.g. /oauth2/start, do not include redirect parameter)
8+
# Where should we send the user to log in?
99
signInUrl: "https://workbench.amr-rti.ncsa.illinois.edu/oauth2/start"
1010

11+
# How to know if we should route to the login page
1112
privateAuth:
1213
forwardAddress: "https://workbench.amr-rti.ncsa.illinois.edu/oauth2/auth"
1314

14-
corsHeader:
15-
enabled: false
16-
15+
# How should this error page be served?
1716
ingress:
1817
className: traefik
19-
hostname: "https://workbench.amr-rti.ncsa.illinois.edu"
20-
tlsSecretName: ndslabs-tls
18+
hostname: "workbench.amr-rti.ncsa.illinois.edu"
19+
tls:
20+
secretName: ndslabs-tls
2121

chart/values.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ config:
1717
name: workbench-private-auth
1818
forwardAddress: ""
1919

20-
# Configure the Headers middleware
21-
corsHeader:
22-
enable: false
23-
name: workbench-cors-header
24-
# TODO: origins could be a list
25-
allowedOrigins: ""
26-
2720
image:
2821
repository: ndslabs/custom-errors
2922
pullPolicy: IfNotPresent
@@ -35,6 +28,7 @@ service:
3528
ingress:
3629
className: ""
3730
hostname: ""
38-
tlsSecretName: ndslabs-tls
31+
tls:
32+
secretName: ""
3933

4034
extraDeploy: []

0 commit comments

Comments
 (0)