Removing unneeded if
This commit is contained in:
parent
f43d792b73
commit
6bc9e97e25
|
|
@ -173,7 +173,6 @@ func syncPV(ctx context.Context, c client.Client, log logr.Logger, ns string, pv
|
|||
}
|
||||
|
||||
// If ReclaimPolicy is not "Delete", we proceed to clean up the ClaimRef.
|
||||
if pv.Status.Phase == corev1.VolumeReleased {
|
||||
pvCopy := pv.DeepCopy()
|
||||
delete(pvCopy.Labels, labelKeyCleanup)
|
||||
pvCopy.Spec.ClaimRef = nil
|
||||
|
|
@ -183,7 +182,6 @@ func syncPV(ctx context.Context, c client.Client, log logr.Logger, ns string, pv
|
|||
}
|
||||
|
||||
log.Info("PV should be Available now")
|
||||
}
|
||||
|
||||
return nil, nil
|
||||
}
|
||||
Loading…
Reference in New Issue