Skip to content

Commit

Permalink
ui: Configure navbar so that it displays documentation, plateform and…
Browse files Browse the repository at this point in the history
… alert menu items
  • Loading branch information
JBWatenbergScality committed Mar 3, 2021
1 parent b498094 commit 0b00a42
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions eve/workers/pod-integration-tests/ui/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ spec:
"clientId": "metalk8s-ui",
"responseType": "id_token",
"scopes": "openid profile email groups offline_access audience:server:client_id:oidc-auth-client"
},
"options": {
"main": {
"https://localhost:8443/":{ "en": "Plateform", "fr": "Plateforme" },
"https://localhost:8443/alerts":{ "en": "Alerts", "fr": "Alertes" }
},
"subLogin": {
"https://localhost:8443/docs":{ "en": "Documentation", "fr": "Documentation" }
}
}
}
EOF
Expand Down
9 changes: 9 additions & 0 deletions salt/metalk8s/addons/ui/deployed/ui.sls.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ Create shell-ui ConfigMap:
"clientId": "metalk8s-ui",
"responseType": "id_token",
"scopes": "openid profile email groups offline_access audience:server:client_id:oidc-auth-client"
},
"options": {
"main": {
"https://{{ ingress_control_plane }}/":{ "en": "Plateform", "fr": "Plateforme" },
"https://{{ ingress_control_plane }}/alerts":{ "en": "Alerts", "fr": "Alertes" }
},
"subLogin": {
"https://{{ ingress_control_plane }}/docs":{ "en": "Documentation", "fr": "Documentation" }
}
}
}

Expand Down
9 changes: 9 additions & 0 deletions ui/cypress/fixtures/shell-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
"clientId": "metalk8s-ui",
"responseType": "id_token",
"scopes": "openid profile email groups offline_access audience:server:client_id:oidc-auth-client"
},
"options": {
"main": {
"https://mocked.ingress/":{ "en": "Plateform", "fr": "Plateforme" },
"https://mocked.ingress/alerts":{ "en": "Alerts", "fr": "Alertes" }
},
"subLogin": {
"https://mocked.ingress/docs":{ "en": "Documentation", "fr": "Documentation" }
}
}
}

0 comments on commit 0b00a42

Please sign in to comment.