Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit bb554c1

Browse files
author
Simon
committed
adding TrustServerCertificate=True to ConnectionString in Helm templates
1 parent 7cf90e0 commit bb554c1

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

deploy/k8s/helm/catalog-api/templates/configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ metadata:
1313
release: {{ .Release.Name }}
1414
heritage: {{ .Release.Service }}
1515
data:
16-
catalog__ConnectionString: Server={{ $sqlsrv }};Initial Catalog={{ .Values.inf.sql.catalog.db }};User Id={{ .Values.inf.sql.common.user }};Password={{ .Values.inf.sql.common.pwd }};
16+
catalog__ConnectionString: Server={{ $sqlsrv }};Initial Catalog={{ .Values.inf.sql.catalog.db }};User Id={{ .Values.inf.sql.common.user }};Password={{ .Values.inf.sql.common.pwd }};TrustServerCertificate={{ .Values.inf.sql.common.TrustServerCertificate }};
1717
catalog__PicBaseUrl: {{ $protocol }}://{{ $webshoppingapigw }}/c/api/v1/catalog/items/[0]/pic/
1818
catalog__AzureStorageEnabled: "{{ .Values.inf.misc.useAzureStorage }}"
1919
all__EventBusConnection: {{ .Values.inf.eventbus.constr }}

deploy/k8s/helm/identity-api/templates/configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ metadata:
2020
release: {{ .Release.Name }}
2121
heritage: {{ .Release.Service }}
2222
data:
23-
identity__ConnectionString: Server={{ $sqlsrv }};Initial Catalog={{ .Values.inf.sql.identity.db }};User Id={{ .Values.inf.sql.common.user }};Password={{ .Values.inf.sql.common.pwd }};
23+
identity__ConnectionString: Server={{ $sqlsrv }};Initial Catalog={{ .Values.inf.sql.identity.db }};User Id={{ .Values.inf.sql.common.user }};Password={{ .Values.inf.sql.common.pwd }};TrustServerCertificate={{ .Values.inf.sql.common.TrustServerCertificate }};
2424
identity__keystore: {{ .Values.inf.redis.keystore.constr }}
2525
all__InstrumentationKey: "{{ .Values.inf.appinsights.key }}"
2626
mvc_e: http://{{ $mvc_url }}

deploy/k8s/helm/inf.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ inf:
1313
user: sa # SQL user
1414
pwd: Pass@word # SQL pwd
1515
pid: Developer
16+
TrustServerCertificate: true
1617
catalog: # inf.sql.catalog: settings for the catalog-api sql (user, pwd, db)
1718
db: CatalogDb # Catalog API SQL db name
1819
ordering: # inf.sql.ordering: settings for the ordering-api sql (user, pwd, db)

deploy/k8s/helm/ordering-api/templates/configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
release: {{ .Release.Name }}
1212
heritage: {{ .Release.Service }}
1313
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 }};
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 }};TrustServerCertificate={{ .Values.inf.sql.common.TrustServerCertificate }};
1515
urls__IdentityUrl: http://{{ .Values.app.svc.identity }}
1616
all__EventBusConnection: {{ .Values.inf.eventbus.constr }}
1717
all__InstrumentationKey: "{{ .Values.inf.appinsights.key }}"

deploy/k8s/helm/ordering-backgroundtasks/templates/configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ metadata:
1212
release: {{ .Release.Name }}
1313
heritage: {{ .Release.Service }}
1414
data:
15-
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__ConnectionString: Server={{ $sqlsrv }};Initial Catalog={{ .Values.inf.sql.ordering.db }};User Id={{ .Values.inf.sql.common.user }};Password={{ .Values.inf.sql.common.pwd }};TrustServerCertificate={{ .Values.inf.sql.common.TrustServerCertificate }};
1616
ordering__EnableLoadTest: "{{ .Values.inf.misc.useLoadTest }}"
1717
all__EventBusConnection: {{ .Values.inf.eventbus.constr }}
1818
all__InstrumentationKey: "{{ .Values.inf.appinsights.key }}"

deploy/k8s/helm/webhooks-api/templates/configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ metadata:
1313
release: {{ .Release.Name }}
1414
heritage: {{ .Release.Service }}
1515
data:
16-
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+
webhooks__ConnectionString: Server={{ $sqlsrv }};Initial Catalog={{ .Values.inf.sql.webhooks.db }};User Id={{ .Values.inf.sql.common.user }};Password={{ .Values.inf.sql.common.pwd }};TrustServerCertificate={{ .Values.inf.sql.common.TrustServerCertificate }};
1717
urls__IdentityUrl: http://{{ $identity }}
1818
urls__IdentityUrlExternal: {{ $protocol }}://{{ $identity }}
1919
all__EventBusConnection: {{ .Values.inf.eventbus.constr }}

0 commit comments

Comments
 (0)