You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
946 B

5 years ago
5 years ago
  1. {{- $name := include "webhooks-api.fullname" . -}}
  2. {{- $sqlsrv := include "sql-name" . -}}
  3. {{- $identity := include "url-of" (list .Values.app.ingress.entries.identity .) -}}
  4. {{- $protocol := include "protocol" . -}}
  5. apiVersion: v1
  6. kind: ConfigMap
  7. metadata:
  8. name: "cfg-{{ $name }}"
  9. labels:
  10. app: {{ template "webhooks-api.name" . }}
  11. chart: {{ template "webhooks-api.chart" .}}
  12. release: {{ .Release.Name }}
  13. heritage: {{ .Release.Service }}
  14. data:
  15. webhooks__ConnectionString: Server={{ $sqlsrv }};Initial Catalog={{ .Values.inf.sql.webhooks.db }};User Id={{ .Values.inf.sql.common.user }};Password={{ .Values.inf.sql.common.pwd }};
  16. urls__IdentityUrl: http://{{ $identity }}
  17. urls__IdentityUrlExternal: {{ $protocol }}://{{ $identity }}
  18. all__EventBusConnection: {{ .Values.inf.eventbus.constr }}
  19. all__InstrumentationKey: "{{ .Values.inf.appinsights.key }}"
  20. all__UseAzureServiceBus: "{{ .Values.inf.eventbus.useAzure }}"