diff --git a/charts/platform/Chart.yaml b/charts/platform/Chart.yaml index 289b38ee..5b75142d 100644 --- a/charts/platform/Chart.yaml +++ b/charts/platform/Chart.yaml @@ -3,8 +3,8 @@ name: platform type: application description: A Helm chart for Kubernetes to deploy Platform -version: 1.26.0 -appVersion: 0.8.1 +version: 1.27.0 +appVersion: 0.15.0 maintainers: - name: 2gis diff --git a/charts/platform/README.md b/charts/platform/README.md index 7e1f4ff3..2c284a3d 100644 --- a/charts/platform/README.md +++ b/charts/platform/README.md @@ -34,16 +34,16 @@ Use this Helm chart to deploy Platform service, which is a part of 2GIS's [On-Pr | Name | Description | Value | | --------------------- | ------------------------------ | ----------------------------- | | `ui.image.repository` | Repository | `2gis-on-premise/platform-ui` | -| `ui.image.tag` | Tag | `0.8.1` | +| `ui.image.tag` | Tag | `0.15.0` | | `imagePullSecrets` | Kubernetes image pull secrets. | `[]` | ### UI service settings -| Name | Description | Value | -| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | -| `ui.appPort` | Service port. | `3000` | -| `ui.brand` | Branding inside the app. Possible values: `"2gis"` or `"urbi"`. | `""` | -| `ui.pages` | A list of pages available in application. Values must be written with a comma. Possible values: `"status"`, `"playground"`. E.g. "status, playground". The first page in a list is the one a user's going to be redirected to from deactivated ones. | `""` | +| Name | Description | Value | +| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------ | +| `ui.appPort` | Service port. | `3000` | +| `ui.brand` | Branding inside the app. Possible values: `"2gis"` or `"urbi"`. | `""` | +| `ui.pages` | A list of pages available in application. Values must be written with a comma. Possible values: `"status"`, `"playground", "map_styles"`. E.g. "status, playground". The first page in a list is the one a user's going to be redirected to from deactivated ones. | `""` | ### Statuses for services. A value is a string containing pairs of label and healthcheck URL for a service. Pairs must be divided with a comma. Each pair must be connected with a symbol "=", e.g. `mapgl: 'MapGL JS=https://example.com/healthcheck'`. URL must be an absolute. You can specify only one URL, e.g. `mapgl: 'https://example.com/healthcheck'`. @@ -65,6 +65,12 @@ Use this Helm chart to deploy Platform service, which is a part of 2GIS's [On-Pr | `ui.mapgl.key` | A key to the [MapGL JS API](https://docs.2gis.com/en/on-premise/map) service. | `""` | | `ui.mapgl.initCenter` | Optional default map coordinates. Contains of two numbers in an array: `[lon,lat]` (e.g., `"[55.27,25.2]"` stands for Dubai, `"[37.64,55.74]"` — for Moscow). | `""` | +### Map styles API settings + +| Name | Description | Value | +| ------------------ | ---------------------- | ----- | +| `ui.mapStyles.url` | URL to Map Styles API. | `""` | + ### Search API settings | Name | Description | Value | diff --git a/charts/platform/templates/ui/deployment.yaml b/charts/platform/templates/ui/deployment.yaml index f08782d6..d1d080e2 100644 --- a/charts/platform/templates/ui/deployment.yaml +++ b/charts/platform/templates/ui/deployment.yaml @@ -75,6 +75,8 @@ spec: value: {{ .Values.ui.navi.url | quote }} - name: NAVI_API_KEY value: {{ .Values.ui.navi.key | quote }} + - name: MAP_STYLES_API_URL + value: {{ .Values.ui.mapStyles.url | quote }} - name: MAPGL_URL value: {{ .Values.ui.mapgl.url | quote }} - name: MAPGL_SCRIPT_PATH diff --git a/charts/platform/values.yaml b/charts/platform/values.yaml index 09fca33d..0d471ae2 100644 --- a/charts/platform/values.yaml +++ b/charts/platform/values.yaml @@ -39,7 +39,7 @@ ui: image: repository: 2gis-on-premise/platform-ui - tag: 0.8.1 + tag: 0.15.0 # @section UI service settings @@ -49,7 +49,7 @@ ui: # @param ui.brand Branding inside the app. Possible values: `"2gis"` or `"urbi"`. # @skip ui.defaultLocale - # @param ui.pages A list of pages available in application. Values must be written with a comma. Possible values: `"status"`, `"playground"`. E.g. "status, playground". The first page in a list is the one a user's going to be redirected to from deactivated ones. + # @param ui.pages A list of pages available in application. Values must be written with a comma. Possible values: `"status"`, `"playground", "map_styles"`. E.g. "status, playground". The first page in a list is the one a user's going to be redirected to from deactivated ones. # @skip ui.googleAnalyticsId # @skip ui.googleTagManagerId @@ -89,6 +89,13 @@ ui: key: '' initCenter: '' + # @section Map styles API settings + + # @param ui.mapStyles.url URL to Map Styles API. + + mapStyles: + url: '' + # @section Search API settings # @param ui.catalog.url URL for [Search API](https://docs.2gis.com/en/on-premise/search).