Skip to content

Commit

Permalink
Merge pull request #438 from LF-Decentralized-Trust-labs/postgres-vol
Browse files Browse the repository at this point in the history
Updating postgres mount path
  • Loading branch information
dwertent authored Nov 15, 2024
2 parents bf26fdf + 461ca21 commit 77f5db3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion operator/internal/controller/paladin_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,8 @@ func (r *PaladinReconciler) addPostgresSidecar(ss *appsv1.StatefulSet, passwordS
{
Name: "pgdata",
MountPath: "/pgdata",
SubPath: "data",
ReadOnly: false, // Postgres needs to write to this
},
},
Ports: []corev1.ContainerPort{
Expand Down Expand Up @@ -495,7 +497,7 @@ func (r *PaladinReconciler) addPostgresSidecar(ss *appsv1.StatefulSet, passwordS
},
},
}, buildEnv(r.config.Postgres.Envs, map[string]string{
"PGDATA": "/pgdata",
"PGDATA": "/pgdata/data",
})...),
},
}, ss.Spec.Template.Spec.Containers...)
Expand Down

0 comments on commit 77f5db3

Please sign in to comment.