mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 05:46:16 +00:00
Merge pull request #126043 from carlory/automated-cherry-pick-of-#125767-upstream-release-1.30
Automated cherry pick of #125767: Fix pv reclaim failed due to its phase is wrongly updated to
This commit is contained in:
commit
c6c2a46727
@ -1958,7 +1958,6 @@ func (ctrl *PersistentVolumeController) findDeletablePlugin(volume *v1.Persisten
|
||||
}
|
||||
}
|
||||
|
||||
if utilfeature.DefaultFeatureGate.Enabled(features.HonorPVReclaimPolicy) {
|
||||
if metav1.HasAnnotation(volume.ObjectMeta, storagehelpers.AnnMigratedTo) {
|
||||
// CSI migration scenario - do not depend on in-tree plugin
|
||||
return nil, nil
|
||||
@ -1968,7 +1967,6 @@ func (ctrl *PersistentVolumeController) findDeletablePlugin(volume *v1.Persisten
|
||||
// CSI volume source scenario - external provisioner is requested
|
||||
return nil, nil
|
||||
}
|
||||
}
|
||||
|
||||
// The plugin that provisioned the volume was not found or the volume
|
||||
// was not dynamically provisioned. Try to find a plugin by spec.
|
||||
|
Loading…
Reference in New Issue
Block a user