Skip to content

Commit

Permalink
Adding ror.nhn.no ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
westerbo-nhn committed Jan 12, 2025
1 parent 3ab1ff8 commit 4113068
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 1 deletion.
30 changes: 30 additions & 0 deletions charts/ror-webapp/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,33 @@ data:
"timeout": 30000
}
}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: ror-web-cm-config2
data:
config.json: |
{
"auth": {
"issuer": "{{ .Values.web.authUrl }}",
"clientId": "ror.nhn.no",
"redirectUri": "/auth/callback",
"scope": "profile email groups",
"response_type": "id_token token",
"requireHttps": true,
"strictDiscoveryDocumentValidation": true
},
"regex": {
"forms": "^[@()\\/:?\\r\\n.,a-zA-Z æøåÆØÅ0-9_-]+$"
},
"rowsPerPage": [10, 25, 50, 75, 100],
"rows": 25,
"rorApi": "{{ .Values.web.apiUrl2 }}",
"sse": {
"postfixUrl": "/v1/events/listen",
"method": "GET",
"timeout": 30000
}
}
2 changes: 1 addition & 1 deletion charts/ror-webapp/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ spec:
volumes:
- name: json-configmap-volume
configMap:
name: ror-web-cm-config
name: ror-web-cm-config2
- name: tmp-volume
emptyDir: {}
12 changes: 12 additions & 0 deletions charts/ror-webapp/templates/ingress-helsenett.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,22 @@ spec:
number: {{ .Values.service.port }}
path: {{ .Values.ingress.path }}
pathType: {{ .Values.ingress.pathType }}
- host: {{ .Values.web.host2 }}
http:
paths:
- backend:
service:
name: {{ include "ror-admin.fullname" . }}
port:
number: {{ .Values.service.port }}
path: {{ .Values.ingress.path }}
pathType: {{ .Values.ingress.pathType }}
tls:
- hosts:
- {{ .Values.web.host }}
secretName: nhn-ror-admin-tls
- {{ .Values.web.host2 }}
secretName: nhn-ror-admin-tls
---
apiVersion: ako.vmware.com/v1alpha1
kind: HostRule
Expand Down
2 changes: 2 additions & 0 deletions charts/ror-webapp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
enabled: true
web:
host: ror.sky.test.nhn.no
host2: ror.nhn.no
apiUrl: https://api.ror.sky.test.nhn.no
apiUrl2: https://api.ror.nhn.no
authUrl: https://auth.sky.nhn.no/dex
replicaCount: 3
image:
Expand Down

0 comments on commit 4113068

Please sign in to comment.