File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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(
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
You can’t perform that action at this time.
0 commit comments