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.

19 lines
906 B

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