Skip to content

Commit 0caea8a

Browse files
authored
Add the modules_sql_defaultconnectionstring back (#30)
1 parent fb9bb00 commit 0caea8a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

charts/opserver/templates/deployment.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,22 @@ spec:
135135
value: "profile"
136136
{{- end }}
137137

138+
- name: SQL_STATUS_USERNAME
139+
valueFrom:
140+
secretKeyRef:
141+
name: {{ .Values.sqlExternalSecret.targetName }}
142+
key: {{ .Values.sqlExternalSecret.remoteRefs.sqlStatusUsername }}
143+
144+
- name: SQL_STATUS_PASSWORD
145+
valueFrom:
146+
secretKeyRef:
147+
name: {{ .Values.sqlExternalSecret.targetName }}
148+
key: {{ .Values.sqlExternalSecret.remoteRefs.sqlStatusPassword }}
149+
150+
- name: Modules__Sql__defaultConnectionString
151+
value: "Server=$ServerName$;Database=master;User ID=$(SQL_STATUS_USERNAME);Password=$(SQL_STATUS_PASSWORD);TrustServerCertificate=True;MultiSubnetFailover=True"
152+
153+
138154
{{- if hasKey .Values.opserverSettings "exceptions" }}
139155
- name: SQL_EXCEPTIONAL_USERNAME
140156
valueFrom:

0 commit comments

Comments
 (0)