21 lines
946 B
YAML
Raw Normal View History

2019-02-06 10:21:47 +01:00
{{- $name := include "webhooks-api.fullname" . -}}
{{- $sqlsrv := include "sql-name" . -}}
{{- $identity := include "url-of" (list .Values.app.ingress.entries.identity .) -}}
2019-12-17 18:12:53 +01:00
{{- $protocol := include "protocol" . -}}
2019-02-06 10:21:47 +01:00
apiVersion: v1
kind: ConfigMap
metadata:
name: "cfg-{{ $name }}"
labels:
app: {{ template "webhooks-api.name" . }}
chart: {{ template "webhooks-api.chart" .}}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
data:
webhooks__ConnectionString: Server={{ $sqlsrv }};Initial Catalog={{ .Values.inf.sql.webhooks.db }};User Id={{ .Values.inf.sql.common.user }};Password={{ .Values.inf.sql.common.pwd }};
urls__IdentityUrl: http://{{ $identity }}
2019-12-17 18:12:53 +01:00
urls__IdentityUrlExternal: {{ $protocol }}://{{ $identity }}
2019-02-06 10:21:47 +01:00
all__EventBusConnection: {{ .Values.inf.eventbus.constr }}
all__InstrumentationKey: "{{ .Values.inf.appinsights.key }}"
2019-02-06 10:21:47 +01:00
all__UseAzureServiceBus: "{{ .Values.inf.eventbus.useAzure }}"