From 88aef436a298b16f86526a2d76d246705926cd66 Mon Sep 17 00:00:00 2001 From: Amit Prinz Setter Date: Wed, 11 Dec 2024 00:21:35 +0200 Subject: [PATCH] bucket notification - check pvcName, not pvc DFBUGS 988, 991 (#1485) Signed-off-by: Amit Prinz Setter --- pkg/system/phase2_creating.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/system/phase2_creating.go b/pkg/system/phase2_creating.go index 4f1e0d3f1..d01ce0e0a 100644 --- a/pkg/system/phase2_creating.go +++ b/pkg/system/phase2_creating.go @@ -1242,7 +1242,7 @@ func (r *Reconciler) ReconcileODFPersistentLoggingPVC( log := r.Logger.WithField("func", "ReconcileODFPersistentLoggingPVC") // Return if persistent logging PVC already exists - if pvc != nil { + if pvcName != nil { pvc.Name = *pvcName; log.Infof("PersistentLoggingPVC %s already exists and supports RWX access mode. Skipping ReconcileODFPersistentLoggingPVC.", *pvcName) return nil @@ -1250,7 +1250,7 @@ func (r *Reconciler) ReconcileODFPersistentLoggingPVC( util.KubeCheck(pvc) if pvc.UID != "" { - log.Infof("Persistent logging PVC %s already exists. Skipping creation.", *pvcName ) + log.Infof("Persistent logging PVC %s already exists. Skipping creation.", pvc.Name) return nil } @@ -1259,7 +1259,7 @@ func (r *Reconciler) ReconcileODFPersistentLoggingPVC( } r.Own(pvc); - log.Infof("Persistent logging PVC %s does not exist. Creating...", *pvcName) + log.Infof("Persistent logging PVC %s does not exist. Creating...", pvc.Name) err := r.Client.Create(r.Ctx, pvc) if err != nil { return err