Skip to content

Commit 658cd20

Browse files
authored
fix: dashboard api url env of portal deployment (#117)
Signed-off-by: Nic <[email protected]>
1 parent df9a783 commit 658cd20

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

charts/api7/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.14.0
18+
version: 0.14.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/api7/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# api7ee3
22

3-
![Version: 0.14.0](https://img.shields.io/badge/Version-0.14.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square)
3+
![Version: 0.14.1](https://img.shields.io/badge/Version-0.14.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square)
44

55
A Helm chart for Kubernetes
66

charts/api7/templates/developer-portal-deploy.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,15 @@ spec:
5151
resources:
5252
{{- toYaml .Values.resources | nindent 12 }}
5353
env:
54+
{{- if not .Values.dashboard_configuration.server.listen.disable }}
5455
- name: API_URL
5556
value: 'http://{{ include "api7ee3.fullname" . }}-dashboard.{{ .Release.Namespace }}:{{ .Values.dashboard_service.port }}'
57+
{{- else }}
58+
- name: NODE_TLS_REJECT_UNAUTHORIZED
59+
value: "0"
60+
- name: API_URL
61+
value: 'https://{{ include "api7ee3.fullname" . }}-dashboard:{{ .Values.dashboard_service.tlsPort }}'
62+
{{- end }}
5663
{{- if .Values.developer_portal.extraEnvVars }}
5764
{{- include "api7ee3.tplvalues.render" (dict "value" .Values.developer_portal.extraEnvVars "context" $) | nindent 12 }}
5865
{{- end }}

0 commit comments

Comments
 (0)