Commits (3)
# [1.4.0](https://git.panter.ch/catladder/helm-charts/the-panter-chart/compare/v1.3.0...v1.4.0) (2021-05-10)
### Bug Fixes
* fix ([088130c](https://git.panter.ch/catladder/helm-charts/the-panter-chart/commit/088130c34e0f1db6b7477aeabc76f3acd91efa6f))
### Features
* SERVICE_VAR_PREFIX variable ([727c9a6](https://git.panter.ch/catladder/helm-charts/the-panter-chart/commit/727c9a64a64c8f1b743b83c316d7067f6956f19c))
# [1.3.0](https://git.panter.ch/catladder/helm-charts/the-panter-chart/compare/v1.2.1...v1.3.0) (2021-05-10)
......
......@@ -21,6 +21,15 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
{{- end -}}
{{/*
create a prefix for variable names, this is useful in service discovery in review apps
*/}}
{{- define "serviceVarPrefix" -}}
{{ include "fullname" . | snakecase }}
{{- end -}}
{{/*
Create chart name and version as used by the chart label.
*/}}
......
......@@ -10,6 +10,7 @@ data:
PORT: "8080"
TZ: Europe/Zurich
ENV_SHORT: {{ .Values.global.ENV_SHORT }}
SERVICE_VAR_PREFIX: "{{- template "serviceVarPrefix" . -}}"
ROOT_URL: "https://{{- template "host" . -}}"
{{ if .Values.mongodb.enabled }}
MONGO_URL: "{{- template "MONGO_URL" . -}}"
......