From 336b592e20318880af68fd9fabc8e26736f41ab5 Mon Sep 17 00:00:00 2001 From: Sebastian Wendel Date: Wed, 30 Nov 2022 10:08:26 +0100 Subject: [PATCH] added config property to set the gateway url --- templates/_helpers.tpl | 6 +++++- values.yaml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index 14274bb..c8c2595 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -152,7 +152,11 @@ If release name contains chart name it will be used as a full name. {{- end -}} {{- define "fcoscore.gateway.url" -}} -{{- printf "http://%s:%s" (include "fcoscore.gateway.host" . ) (include "fcoscore.gateway.port" . ) -}} + {{- if .Values.gateway.url }} + {{- .Values.gateway.url -}} + {{- else -}} + {{- print "gateway.example.org" -}} + {{- end -}} {{- end -}} {{/* diff --git a/values.yaml b/values.yaml index 39806d7..55eb64f 100644 --- a/values.yaml +++ b/values.yaml @@ -279,6 +279,7 @@ gateway: service: type: ClusterIP port: 4040 + url: "" ## Persistence Parameters ## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/