mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #125767 from carlory/fix-external-provisioner-1235
Fix pv reclaim failed due to its phase is wrongly updated to the Failed state by kcm
This commit is contained in:
		@@ -1935,7 +1935,6 @@ func (ctrl *PersistentVolumeController) findDeletablePlugin(volume *v1.Persisten
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if utilfeature.DefaultFeatureGate.Enabled(features.HonorPVReclaimPolicy) {
 | 
					 | 
				
			||||||
	if metav1.HasAnnotation(volume.ObjectMeta, storagehelpers.AnnMigratedTo) {
 | 
						if metav1.HasAnnotation(volume.ObjectMeta, storagehelpers.AnnMigratedTo) {
 | 
				
			||||||
		// CSI migration scenario - do not depend on in-tree plugin
 | 
							// CSI migration scenario - do not depend on in-tree plugin
 | 
				
			||||||
		return nil, nil
 | 
							return nil, nil
 | 
				
			||||||
@@ -1945,7 +1944,6 @@ func (ctrl *PersistentVolumeController) findDeletablePlugin(volume *v1.Persisten
 | 
				
			|||||||
		// CSI volume source scenario - external provisioner is requested
 | 
							// CSI volume source scenario - external provisioner is requested
 | 
				
			||||||
		return nil, nil
 | 
							return nil, nil
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// The plugin that provisioned the volume was not found or the volume
 | 
						// The plugin that provisioned the volume was not found or the volume
 | 
				
			||||||
	// was not dynamically provisioned. Try to find a plugin by spec.
 | 
						// was not dynamically provisioned. Try to find a plugin by spec.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user