Skip to content

Commit 88aef43

Browse files
authored
bucket notification - check pvcName, not pvc DFBUGS 988, 991 (#1485)
Signed-off-by: Amit Prinz Setter <[email protected]>
1 parent e2ea947 commit 88aef43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/system/phase2_creating.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1242,15 +1242,15 @@ func (r *Reconciler) ReconcileODFPersistentLoggingPVC(
12421242
log := r.Logger.WithField("func", "ReconcileODFPersistentLoggingPVC")
12431243

12441244
// Return if persistent logging PVC already exists
1245-
if pvc != nil {
1245+
if pvcName != nil {
12461246
pvc.Name = *pvcName;
12471247
log.Infof("PersistentLoggingPVC %s already exists and supports RWX access mode. Skipping ReconcileODFPersistentLoggingPVC.", *pvcName)
12481248
return nil
12491249
}
12501250

12511251
util.KubeCheck(pvc)
12521252
if pvc.UID != "" {
1253-
log.Infof("Persistent logging PVC %s already exists. Skipping creation.", *pvcName )
1253+
log.Infof("Persistent logging PVC %s already exists. Skipping creation.", pvc.Name)
12541254
return nil
12551255
}
12561256

@@ -1259,7 +1259,7 @@ func (r *Reconciler) ReconcileODFPersistentLoggingPVC(
12591259
}
12601260
r.Own(pvc);
12611261

1262-
log.Infof("Persistent logging PVC %s does not exist. Creating...", *pvcName)
1262+
log.Infof("Persistent logging PVC %s does not exist. Creating...", pvc.Name)
12631263
err := r.Client.Create(r.Ctx, pvc)
12641264
if err != nil {
12651265
return err

0 commit comments

Comments
 (0)