We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc02379 commit d7e5657Copy full SHA for d7e5657
internal/collector/instance.go
@@ -54,6 +54,11 @@ func AddToPod(
54
return
55
}
56
57
+ // We only want to include log rotation if this type of pod requires it
58
+ // (indicate by the includeLogrotate boolean) AND if logging is enabled
59
+ // for this PostgresCluster/PGAdmin
60
+ includeLogrotate = includeLogrotate && OpenTelemetryLogsEnabled(ctx, spec)
61
+
62
// Create volume and volume mount for otel collector config
63
configVolumeMount := corev1.VolumeMount{
64
Name: "collector-config",
0 commit comments