I am trying to concatenate variable in helmchart to develop connection strings.
connection string:
ConnectionStrings:TheSourceContext="Server=10.xx.xx.xx,1433;Database=Test;User Id=Test; Password=pass123;"
I am passing user id &password as secret but it is not working. it is not building up the requried strings.
- name: DBUSERD
valueFrom:
secretKeyRef:
key: dbuser
name: api-catalogue
- name: DBPASSD
valueFrom:
secretKeyRef:
key: dbpass
name: api-catalogue
- name: ConnectionStrings__TheSourceContext
value: {{ .Values.const.DBSVR }}{{ .Values.app.connectionStringsServer }},{{.Values.app.connectionStringsPort }}{{ .Values.const.DB }}{{ .Values.app.connectionStringsDB }}{{ .Values.const.DBUSR }}$(DBUSERD){{ .Values.const.DBPASS }}($DBPASSD)*
How to correct above variable so that it will work?