Skip to content

Commit

Permalink
Fix #432 POSTGRES_HOST use service url with namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
guymguym authored Sep 29, 2024
1 parent c6727ce commit f445b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/system/phase2_creating.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ func (r *Reconciler) setDesiredCoreEnv(c *corev1.Container) {

case "POSTGRES_HOST":
if r.NooBaa.Spec.ExternalPgSecret == nil {
c.Env[j].Value = r.NooBaaPostgresDB.Name + "-0." + r.NooBaaPostgresDB.Spec.ServiceName
c.Env[j].Value = r.NooBaaPostgresDB.Name + "-0." + r.NooBaaPostgresDB.Spec.ServiceName + "." + r.NooBaaPostgresDB.Namespace + ".svc"
}

case "DB_TYPE":
Expand Down

0 comments on commit f445b3d

Please sign in to comment.