Commit 727c9a64 authored by Marco Wettstein's avatar Marco Wettstein
Browse files

feat: SERVICE_VAR_PREFIX variable

parent 2ddab123
Pipeline #101338 failed with stages
in 4 seconds
......@@ -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" . -}}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment