From e3e9d8f65cd18ae568bb3a4b2d2eb4be2ae31848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D0=BD=D1=82=D1=8F=D0=B1=D0=BE=D0=B2=20=D0=90?= =?UTF-8?q?=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20=D0=A1=D0=B5?= =?UTF-8?q?=D1=80=D0=B3=D0=B5=D0=B5=D0=B2=D0=B8=D1=87?= Date: Wed, 10 May 2023 11:44:46 +0700 Subject: [PATCH] add support license server to navi-back --- charts/navi-back/README.md | 6 ++++++ charts/navi-back/templates/configmap.yaml | 3 +++ charts/navi-back/values.yaml | 8 ++++++++ 3 files changed, 17 insertions(+) diff --git a/charts/navi-back/README.md b/charts/navi-back/README.md index 2766d3044..5ad2ea05f 100644 --- a/charts/navi-back/README.md +++ b/charts/navi-back/README.md @@ -50,6 +50,12 @@ See the [documentation](https://docs.2gis.com/en/on-premise/navigation) to learn | `image.tag` | Tag | `7.3.1` | | `image.pullPolicy` | Pull Policy | `IfNotPresent` | +### License settings + +| Name | Description | Value | +| ------------- | ------------------------------------------------------------------ | ----- | +| `license.url` | URL of the License service. Ex: http(s)://license.svc **Required** | `""` | + ### Navi-Back application settings | Name | Description | Value | diff --git a/charts/navi-back/templates/configmap.yaml b/charts/navi-back/templates/configmap.yaml index 1337f718f..26c04409b 100644 --- a/charts/navi-back/templates/configmap.yaml +++ b/charts/navi-back/templates/configmap.yaml @@ -469,6 +469,9 @@ data: } }, {{- end }} + {{- $licenseUrl := .Values.license.url | required "Valid .Values.license.url required!" }} + "pasportool_client": + {{- toPrettyJson .Values.license | nindent 8 -}}, {{- if .Values.naviback.additionalSections }} {{- include "tplvalues.render" ( dict "value" .Values.naviback.additionalSections "context" $) | nindent 8 }} {{- end }} diff --git a/charts/navi-back/values.yaml b/charts/navi-back/values.yaml index 6988e6984..0507412dc 100644 --- a/charts/navi-back/values.yaml +++ b/charts/navi-back/values.yaml @@ -44,6 +44,14 @@ image: tag: 7.3.1 +# @section License settings + +# @param license.url URL of the License service. Ex: http(s)://license.svc **Required** + +license: + url: '' + + # @section Navi-Back application settings # @extra naviback.ecaHost Domain name of the [Traffic Proxy service](https://docs.2gis.com/en/on-premise/traffic-proxy).
This URL should be accessible from all the pods within your Kubernetes cluster.