From 7e49ce3d7753c96c2347745fdb7f6d3ec00764ec Mon Sep 17 00:00:00 2001 From: Ralf Pannemans Date: Thu, 21 Feb 2019 21:08:52 +0100 Subject: [PATCH] Make APP_URL configurable via helm templating (#52) Co-authored-by: Axel Siebenborn --- charts/service-broker-proxy-k8s/templates/deployment.yaml | 4 ++++ charts/service-broker-proxy-k8s/values.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/charts/service-broker-proxy-k8s/templates/deployment.yaml b/charts/service-broker-proxy-k8s/templates/deployment.yaml index 10ce2204..59e5c84c 100644 --- a/charts/service-broker-proxy-k8s/templates/deployment.yaml +++ b/charts/service-broker-proxy-k8s/templates/deployment.yaml @@ -46,7 +46,11 @@ spec: - name: K8S_SECRET_NAMESPACE value: {{ .Release.Namespace }} - name: APP_URL + {{- if .Values.service.app_url }} + value: {{ .Values.service.app_url }} + {{- else}} value: http://{{ template "service-broker-proxy.fullname" . }}.{{ .Release.Namespace }}:{{ .Values.service.port }} + {{- end}} - name: APP_USERNAME valueFrom: secretKeyRef: diff --git a/charts/service-broker-proxy-k8s/values.yaml b/charts/service-broker-proxy-k8s/values.yaml index 8086d57b..3c4a96bd 100644 --- a/charts/service-broker-proxy-k8s/values.yaml +++ b/charts/service-broker-proxy-k8s/values.yaml @@ -13,6 +13,7 @@ image: service: type: ClusterIP port: 80 + app_url: file: name: application