Skip to content

Commit 32f64a6

Browse files
authored
Merge pull request #163 from nlnwa/fix-dashboard-config
Fix veidemann dashboard dynamic configuration relocation
2 parents 3c4f680 + 4d80263 commit 32f64a6

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

bases/veidemann-dashboard/deployment.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ spec:
2424
configMap:
2525
name: veidemann-dashboard
2626
items:
27-
- key: environment.json
28-
path: environment.json
27+
- key: config.json
28+
path: config.json
2929
containers:
3030
- name: veidemann-dashboard
3131
image: ghcr.io/nlnwa/veidemann-dashboard:0.18.6
@@ -34,5 +34,6 @@ spec:
3434
name: http
3535
protocol: TCP
3636
volumeMounts:
37-
- mountPath: /usr/share/nginx/html/veidemann/assets/config
37+
- mountPath: /usr/share/nginx/app/veidemann/assets/config.json
38+
subPath: config.json
3839
name: config

bases/veidemann-dashboard/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ commonLabels:
1111
configMapGenerator:
1212
- name: veidemann-dashboard
1313
literals:
14-
- environment.json="{}"
14+
- config.json="{}"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"grpcWebUrl": "/grpc-web",
3+
"authConfig": {
4+
"issuer": "",
5+
"redirectUri": "https://veidemann.test/veidemann/",
6+
"requestAccessToken": false,
7+
"oidc": true,
8+
"responseType": "id_token",
9+
"clientId": "veidemann-dashboard",
10+
"scope": "openid profile email groups offline_access audience:server:client_id:veidemann-api",
11+
"requireHttps": true
12+
}
13+
}

dev/veidemann/veidemann-dashboard/kustomization.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ namespace: veidemann
66
resources:
77
- ../../../bases/veidemann-dashboard
88
- dashboard_ingressroute.yaml
9+
10+
configMapGenerator:
11+
- name: veidemann-dashboard
12+
behavior: replace
13+
files:
14+
- config.json

0 commit comments

Comments
 (0)