We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2eb7e67 commit 054dbffCopy full SHA for 054dbff
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",
@@ -152,7 +157,6 @@ func AddToPod(
152
157
Key: "logrotate.conf",
153
158
Path: "logrotate.conf",
154
159
}},
155
- Optional: initialize.Bool(true),
156
160
},
161
162
0 commit comments