Skip to content

Commit

Permalink
follow up to 9a2b712
Browse files Browse the repository at this point in the history
Add read_default_file to DatabaseConnection
  • Loading branch information
stuggi committed Mar 8, 2024
1 parent 0fda28a commit f66eec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/manila_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ func (r *ManilaReconciler) generateServiceConfig(
"KeystonePublicURL": keystonePublicURL,
"KeystoneInternalURL": keystoneInternalURL,
"TransportURL": string(transportURLSecret.Data["transport_url"]),
"DatabaseConnection": fmt.Sprintf("mysql+pymysql://%s:%s@%s/%s",
"DatabaseConnection": fmt.Sprintf("mysql+pymysql://%s:%s@%s/%s?read_default_file=/etc/my.cnf",
instance.Spec.DatabaseUser,
string(ospSecret.Data[instance.Spec.PasswordSelectors.Database]),
instance.Status.DatabaseHostname,
Expand Down

0 comments on commit f66eec4

Please sign in to comment.