add helm charts

This commit is contained in:
Ybehrooz
2025-11-09 13:22:40 +03:30
parent 282c3e52d0
commit 38e4d749ad
1352 changed files with 190457 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
-- Credits for https://stackoverflow.com/a/52484134/747579
{{- if .Values.auth.createLogin }}
USE [master]
GO
CREATE LOGIN [{{ .Values.auth.username }}] WITH PASSWORD=N'$(MSSQL_PASSWORD)'
GO
{{- end }}
{{- if .Values.auth.username }}
USE [master]
GO
CREATE USER [{{ .Values.auth.username }}] FOR LOGIN [{{ .Values.auth.username }}]
GO
{{- end }}
{{- if and .Values.auth.database .Values.auth.username }}
USE [{{ .Values.auth.database }}]
GO
CREATE USER [{{ .Values.auth.username }}] FOR LOGIN [{{ .Values.auth.username }}]
ALTER ROLE db_owner ADD MEMBER [{{ .Values.auth.username }}]
GO
{{- end }}