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.

23 lines
1.1 KiB

  1. {{- $name := include "marketing-api.fullname" . -}}
  2. {{- $identity := include "url-of" (list .Values.app.ingress.entries.identity .) -}}
  3. {{- $webshoppingapigw := include "url-of" (list .Values.app.ingress.entries.webshoppingapigw .) -}}
  4. {{- $mongo := include "mongo-name" . -}}
  5. apiVersion: v1
  6. kind: ConfigMap
  7. metadata:
  8. name: "cfg-{{ $name }}"
  9. labels:
  10. app: {{ template "marketing-api.name" . }}
  11. chart: {{ template "marketing-api.chart" .}}
  12. release: {{ .Release.Name }}
  13. heritage: {{ .Release.Service }}
  14. data:
  15. all__EventBusConnection: {{ .Values.inf.eventbus.constr }}
  16. all__InstrumentationKey: {{ .Values.inf.appinsights.key }}
  17. all__UseAzureServiceBus: "{{ .Values.inf.eventbus.useAzure }}"
  18. all_EnableLoadTest: "{{ .Values.inf.misc.useLoadTest }}"
  19. internalurls__IdentityUrl: http://{{ .Values.app.svc.identity }}
  20. urls__IdentityUrl: {{ $identity }}
  21. marketing__ConnectionString: mongodb://{{ $mongo }}
  22. marketing__Database: {{ .Values.inf.mongo.marketing.database }}
  23. marketing__PicBaseUrl: http://{{ $webshoppingapigw }}/api/v1/c/catalog/items/[0]/pic/