Skip to content

Commit c86ec3b

Browse files
FIXUP: internal/controller/standalone_pgadmin/statefulset.go
Co-authored-by: Tony Landreth <56887169+tony-landreth@users.noreply.github.com>
1 parent 540ce54 commit c86ec3b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

internal/controller/standalone_pgadmin/statefulset.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,25 @@ func statefulset(
122122
pod(pgadmin, configmap, &sts.Spec.Template.Spec, dataVolume)
123123

124124
if feature.Enabled(ctx, feature.OpenTelemetryLogs) {
125+
// Mount for file_storage/pgadmin
125126
pgAdminLogVolumeMount := corev1.VolumeMount{
126127
Name: "pgadmin-log",
127128
MountPath: "/var/log/pgadmin",
128129
}
130+
// Mount for file_storage/gunicorn
129131
gunicornLogVolumeMount := corev1.VolumeMount{
130132
Name: "gunicorn-log",
131133
MountPath: "/var/log/gunicorn",
132134
}
135+
// Logs for gunicorn and pgadmin write to /var/lib/pgadmin/logs
136+
dataVolumeMount := corev1.VolumeMount{
137+
Name: "pgadmin-data",
138+
MountPath: "/var/lib/pgadmin",
139+
}
133140
volumeMounts := []corev1.VolumeMount{
134141
pgAdminLogVolumeMount,
135142
gunicornLogVolumeMount,
143+
dataVolumeMount,
136144
}
137145

138146
collector.AddToPod(ctx, pgadmin.Spec.ImagePullPolicy,

0 commit comments

Comments
 (0)