apiVersion: v1
kind: ConfigMap
metadata:
  name: platform-secret-configmap
  annotations:
    reloader.stakater.com/match: "true" 
data:
    templates-custom.hcl: |
      {{ with secret "secret/notifications" }}
      export Notifications__SendGrid__ApiKey="{{ .Data.apikey }}"
      {{ end }}
      {{ with secret "secret/notifications" }}
      export Notifications__Smtp__Password="{{ .Data.password }}"
      {{ end }}
      {{ with secret "secret/webstore-sso" }}
      export AzureAd__ApplicationId="{{ .Data.ApplicationID }}"
      {{ end }}
      {{ with secret "secret/webstore-sso" }}
      export AzureAd__TenantId="{{ .Data.TenantID }}"
      {{ end }}
      {{ with secret "secret/redis" }}
      export ConnectionStrings__RedisConnectionString=redis-master.redis:6379,password={{ .Data.REDIS_PASS }},ssl=False,abortConnect=False,channelPrefix=$(VC_PLATFORM_SERVICE)-$(VC_NAMESPACE)-chanel
      {{ end }} 
 
