Skip to content
Closed
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
{{- range .Values.users }}
[[users]]
name = {{ .name | quote }}
{{- if .databases }}
databases = [{{ range $i, $d := .databases }}{{ if $i }}, {{ end }}{{ $d | quote }}{{ end }}]
{{- else }}
database = {{ .database | quote }}
{{- end }}
{{- if hasKey . "authType" }}
auth_type = {{ .authType | quote }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions test/values-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ users:
poolMode: transaction
- username: admin_user
password: admin123
databases:
- primary
- replica

shardedTables:
- database: primary
Expand Down
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ databases: []
# camelCase format.
# Set identity on a user to match the identity in its client TLS certificate.
# Set authType on a user to override the general authType setting.
# Set databases on a user to a list of database names to give it access to
# multiple databases. It takes precedence over database.
# Set serverIamRegion to the AWS region for RDS IAM authentication
# when serverAuth is rds_iam.
# Set serverIamAssumeRole to an IAM role ARN to assume for RDS IAM authentication
Expand Down