Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PRO-3589] Update helm-charts for pro-ui. #322

Merged
merged 5 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/pro-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Use this Helm chart to deploy 2GIS Pro UI service, which is a part of 2GIS's [On
| `ui.appLocale` | Language in the app. Possible values: `"ar_AE"`, `"en_AE"` or `"ru_RU"`. | `en_AE` |
| `ui.appInitialMapCenter` | Default map coordinates, it contains of two numbers in an array: [lng, lat] (e.g., [55.27, 25.2] stands for Dubai, [37.64, 55.74] — for Moscow). | `[46.71, 24.72]` |
| `ui.supportDocumentationLink` | Product online documentation link. Ex.: 'https://docs.urbi.ae/en/pro/start' | `""` |
| `ui.immersiveModels` | A string value for config to enabling 3D-models. | `""` |
| `ui.auth.sso` | Flag to turn on/off the authorization. Possible values: `"true"` or `"false"`. | `false` |
| `ui.auth.secure` | Flag to turn on/off the https for auth. Possible values: `"true"` or `"false"`. | `true` |
| `ui.auth.safeHosts` | a string with regExp, which checks incoming authCodeUrl | `.*` |
Expand Down
2 changes: 2 additions & 0 deletions charts/pro-ui/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
value: "{{ .Values.ui.appInitialMapCenter }}"
- name: SUPPORT_DOCUMENTATION_LINK
value: "{{ .Values.ui.supportDocumentationLink }}"
- name: IMMERSIVE_MODELS
value: {{ .Values.ui.immersiveModels | quote }}
- name: HOME
value: "/tmp"
{{- end }}
6 changes: 6 additions & 0 deletions charts/pro-ui/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
"supportDocumentationLink": {
"type": "string"
},
"immersiveModels": {
"type": "string"
},
"healthcheckPath": {
"type": "string"
},
"auth": {
"type": "object",
"additionalProperties": false,
Expand Down
2 changes: 2 additions & 0 deletions charts/pro-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,15 @@ ui:
# @param ui.appLocale Language in the app. Possible values: `"ar_AE"`, `"en_AE"` or `"ru_RU"`.
# @param ui.appInitialMapCenter Default map coordinates, it contains of two numbers in an array: [lng, lat] (e.g., [55.27, 25.2] stands for Dubai, [37.64, 55.74] — for Moscow).
# @param ui.supportDocumentationLink Product online documentation link. Ex.: 'https://docs.urbi.ae/en/pro/start'
# @param ui.immersiveModels A string value for config to enabling 3D-models. Possible values: [{"id":4,"name":"Ground","mapOptions":{"center":[53.287567,23.564967],"styleZoom":19.2,"pitch":45,"rotation":0},"objects":[{"buildingIds":[],"coords":[53.284762,23.569323],"scale":90,"rotateX":0.5,"rotateY":0,"moveX":0,"moveY":0,"moveZ":0,"models":[{"path":"/static/models/adnoc/ground.glb","name":"Ground","displayName":"Ground"}]}]}]

logLevel: error
isOnPremise: true
appTheme: urbi
appLocale: en_AE
appInitialMapCenter: '[46.71, 24.72]'
supportDocumentationLink: ''
immersiveModels: ''

# @param ui.auth.sso Flag to turn on/off the authorization. Possible values: `"true"` or `"false"`.
# @param ui.auth.secure Flag to turn on/off the https for auth. Possible values: `"true"` or `"false"`.
Expand Down