Skip to content

Commit

Permalink
Make APP_URL configurable via helm templating (#52)
Browse files Browse the repository at this point in the history
Co-authored-by: Axel Siebenborn <[email protected]>
  • Loading branch information
2 people authored and georgifarashev committed Feb 21, 2019
1 parent 7d88a76 commit 7e49ce3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/service-broker-proxy-k8s/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions charts/service-broker-proxy-k8s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ image:
service:
type: ClusterIP
port: 80
app_url:

file:
name: application
Expand Down

0 comments on commit 7e49ce3

Please sign in to comment.