File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1242,15 +1242,15 @@ func (r *Reconciler) ReconcileODFPersistentLoggingPVC(
1242
1242
log := r .Logger .WithField ("func" , "ReconcileODFPersistentLoggingPVC" )
1243
1243
1244
1244
// Return if persistent logging PVC already exists
1245
- if pvc != nil {
1245
+ if pvcName != nil {
1246
1246
pvc .Name = * pvcName ;
1247
1247
log .Infof ("PersistentLoggingPVC %s already exists and supports RWX access mode. Skipping ReconcileODFPersistentLoggingPVC." , * pvcName )
1248
1248
return nil
1249
1249
}
1250
1250
1251
1251
util .KubeCheck (pvc )
1252
1252
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 )
1254
1254
return nil
1255
1255
}
1256
1256
@@ -1259,7 +1259,7 @@ func (r *Reconciler) ReconcileODFPersistentLoggingPVC(
1259
1259
}
1260
1260
r .Own (pvc );
1261
1261
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 )
1263
1263
err := r .Client .Create (r .Ctx , pvc )
1264
1264
if err != nil {
1265
1265
return err
You can’t perform that action at this time.
0 commit comments