Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sql): update default connstr #27

Merged
merged 1 commit into from
Mar 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions charts/opserver/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,6 @@ spec:
value: "profile"
{{- end }}

- name: SQL_STATUS_SERVERNAME
valueFrom:
secretKeyRef:
name: {{ .Values.sqlExternalSecret.targetName }}
key: {{ .Values.sqlExternalSecret.remoteRefs.sqlStatusSqlServerName }}

- name: SQL_STATUS_USERNAME
valueFrom:
secretKeyRef:
Expand All @@ -153,7 +147,7 @@ spec:
key: {{ .Values.sqlExternalSecret.remoteRefs.sqlStatusPassword }}

- name: Modules__Sql__defaultConnectionString
value: "Server=$(SQL_STATUS_SERVERNAME);Database=master;User ID=$(SQL_STATUS_USERNAME);Password=$(SQL_STATUS_PASSWORD);TrustServerCertificate=True"
value: "Server=$ServerName$;Database=master;User ID=$(SQL_STATUS_USERNAME);Password=$(SQL_STATUS_PASSWORD);TrustServerCertificate=True"

{{- if hasKey .Values.opserverSettings "exceptions" }}
- name: SQL_EXCEPTIONAL_USERNAME
Expand Down
Loading