Skip to content

Commit

Permalink
devdb: fixed search_path for schema connection (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
giautm authored Nov 14, 2024
1 parent 30e13d9 commit df0989a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/controller/devdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,11 @@ func deploymentDevDB(key types.NamespacedName, targetURL url.URL) (*appsv1.Deplo
switch drv {
case dbv1alpha1.DriverPostgres:
// URLs
user, pass, path = "root", "pass", "postgres"
user, pass, path = "postgres", "pass", "postgres"
q.Set("sslmode", "disable")
if drv.SchemaBound(targetURL) {
q.Set("search_path", "public")
}
// Containers
c.Image = "postgres:latest"
c.Ports = []corev1.ContainerPort{
Expand Down

0 comments on commit df0989a

Please sign in to comment.