Skip to content

Commit f269653

Browse files
Update pkg/controller/perconaservermongodb/psmdb_controller.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 70255f4 commit f269653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/perconaservermongodb/psmdb_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ func (r *ReconcilePerconaServerMongoDB) reconcileLogRotateConfigMaps(ctx context
12781278
return nil
12791279
}
12801280

1281-
if cr.Spec.LogCollector == nil || cr.Spec.LogCollector.LogRotate == nil || cr.Spec.LogCollector.LogRotate.Configuration == "" {
1281+
if cr.Spec.LogCollector.LogRotate == nil || cr.Spec.LogCollector.LogRotate.Configuration == "" {
12821282
if err := deleteConfigMapIfExists(ctx, r.client, cr, logrotate.ConfigMapName(cr.Name)); err != nil {
12831283
return errors.Wrap(err, "failed to delete log rotate config map when the configuration is empty")
12841284
}

0 commit comments

Comments
 (0)