Skip to content

Commit 37c1a41

Browse files
committed
Add TODO: CRITICAL for EmptyDir data volume
Mark the Postgres EmptyDir volume as critical to replace with a PVC. All conversation history is lost if the pod is rescheduled or the control plane goes down.
1 parent edbca63 commit 37c1a41

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internal/controller/postgres_deployment.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ func buildPostgresPodTemplateSpec() corev1.PodTemplateSpec {
8585
SubPath: PostgresConfigKey,
8686
})
8787

88-
// Data volume (EmptyDir for now — no persistence)
88+
// TODO: CRITICAL - Replace EmptyDir with a PVC. With EmptyDir all conversation
89+
// history is lost if the pod is rescheduled or the OCP control plane goes down.
8990
volumes = append(volumes, corev1.Volume{
9091
Name: PostgresDataVolume,
9192
VolumeSource: corev1.VolumeSource{

0 commit comments

Comments
 (0)