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

add required field to mapgl ENV values #504

Merged
merged 5 commits into from
Sep 23, 2024
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
2 changes: 1 addition & 1 deletion charts/mapgl-js-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ See the [documentation](https://docs.2gis.com/en/on-premise/map) to learn about:
| `env.MAPGL_TILES_API` | URL of the Tiles API service, e.g. 'https://tiles-api.ingress.host' | `""` |
| `env.MAPGL_TILESET` | Tileset of the Tiles API service to use. | `web` |
| `env.MAPGL_IMMERSIVE_TILESET` | Additional immersive tileset of the Tiles API service to use. | `web_immersive` |
| `env.MAPGL_TRAFFICSERVER` | Domain name of the Traffic Proxy service, e.g. 'https://traffic-proxy.ingress.host' | `""` |
| `env.MAPGL_TRAFFICSERVER` | Domain name of the Traffic Proxy service, e.g. 'https://traffic-proxy.ingress.host' | `https://traffic-proxy.ingress.host` |
| `env.MAPGL_FLOORSSERVER` | URL of the Floors API service, e.g. 'https://floors-api.ingress.host' | `""` |
| `env.MAPGL_STYLESERVER` | URL of the Styles API service, e.g. 'https://styles.ingress.host' | `""` |
| `env.MAPGL_ICONSPATH` | URL of the icons directory, e.g. 'https://styles.ingress.host/styles/assets/icons' | `""` |
Expand Down
28 changes: 14 additions & 14 deletions charts/mapgl-js-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,33 +42,33 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: PUBLIC_HOST
value: "{{ .Values.env.MAPGL_HOST }}"
value: {{ .Values.env.MAPGL_HOST | quote }}
- name: DEMO_KEY
value: "{{ .Values.env.MAPGL_DEMO_KEY }}"
value: {{ .Values.env.MAPGL_DEMO_KEY | quote }}
- name: MAPGL_TILESERVER
value: "{{ .Values.env.MAPGL_TILES_API }}"
value: {{ required "A valid .Values.env.MAPGL_TILES_API entry required" .Values.env.MAPGL_TILES_API | quote }}
- name: MAPGL_TILESET
value: "{{ .Values.env.MAPGL_TILESET }}"
value: {{ .Values.env.MAPGL_TILESET | quote }}
- name: MAPGL_MODELS_TILESET
value: "{{ .Values.env.MAPGL_IMMERSIVE_TILESET }}"
value: {{ .Values.env.MAPGL_IMMERSIVE_TILESET | quote }}
- name: MAPGL_TRAFFICSERVER
value: "{{ .Values.env.MAPGL_TRAFFICSERVER }}"
value: {{ .Values.env.MAPGL_TRAFFICSERVER | quote }}
- name: MAPGL_FLOORSSERVER
value: "{{ .Values.env.MAPGL_FLOORSSERVER }}"
value: {{ .Values.env.MAPGL_FLOORSSERVER | quote }}
- name: MAPGL_STYLESERVER
value: "{{ .Values.env.MAPGL_STYLESERVER }}"
value: {{ .Values.env.MAPGL_STYLESERVER | quote }}
- name: MAPGL_ICONSPATH
value: "{{ .Values.env.MAPGL_ICONSPATH }}"
value: {{ .Values.env.MAPGL_ICONSPATH | quote }}
- name: MAPGL_MODELSPATH
value: "{{ .Values.env.MAPGL_MODELSPATH }}"
value: {{ .Values.env.MAPGL_MODELSPATH | quote }}
- name: MAPGL_KEYSERVER
value: "{{ .Values.env.MAPGL_KEYSERVER }}"
value: {{ .Values.env.MAPGL_KEYSERVER | quote }}
- name: MAPGL_RTLPLUGIN
value: "{{ .Values.env.MAPGL_RTLPLUGIN }}"
value: {{ .Values.env.MAPGL_RTLPLUGIN | quote }}
- name: MAPGL_RTLPLUGINHASH
value: "{{ .Values.env.MAPGL_RTLPLUGINHASH }}"
value: {{ .Values.env.MAPGL_RTLPLUGINHASH | quote }}
- name: MAPGL_INVALID_KEY_MESSAGE
value: "{{ .Values.env.MAPGL_INVALID_KEY_MESSAGE }}"
value: {{ .Values.env.MAPGL_INVALID_KEY_MESSAGE | quote }}
ports:
- name: http
containerPort: 8080
Expand Down
2 changes: 1 addition & 1 deletion charts/mapgl-js-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ env:
MAPGL_TILES_API: ''
MAPGL_TILESET: web
MAPGL_IMMERSIVE_TILESET: web_immersive
MAPGL_TRAFFICSERVER: ''
MAPGL_TRAFFICSERVER: 'https://traffic-proxy.ingress.host'
MAPGL_FLOORSSERVER: ''
MAPGL_STYLESERVER: ''
MAPGL_ICONSPATH: ''
Expand Down
Loading