Remove alphaProvisioner in PVController and AlphaStorageClassAnnotation

This commit is contained in:
NickrenREN
2017-04-05 19:35:14 +08:00
parent e18843d353
commit fa7bd44966
10 changed files with 1 additions and 166 deletions

View File

@@ -126,14 +126,6 @@ func (pvIndex *persistentVolumeOrderedIndex) findByClaim(claim *v1.PersistentVol
return volume, nil
}
// In Alpha dynamic provisioning, we do now want not match claims
// with existing PVs, findByClaim must find only PVs that are
// pre-bound to the claim (by dynamic provisioning). TODO: remove in
// 1.5
if metav1.HasAnnotation(claim.ObjectMeta, v1.AlphaStorageClassAnnotation) {
continue
}
// filter out:
// - volumes bound to another claim
// - volumes whose labels don't match the claim's selector, if specified