Update matching logic with storage class

- no default StorageClass
- PVC.Spec.Class == nil means the same as PVC.Spec.Class == ""
This commit is contained in:
Jan Safranek
2016-08-18 10:36:50 +02:00
parent f6fb99b2fd
commit d8a95a3785
7 changed files with 133 additions and 39 deletions

View File

@@ -591,6 +591,9 @@ func newTestController(kubeClient clientset.Interface, volumeSource, claimSource
if claimSource == nil {
claimSource = framework.NewFakePVCControllerSource()
}
if classSource == nil {
classSource = framework.NewFakeControllerSource()
}
ctrl := NewPersistentVolumeController(
kubeClient,
5*time.Second, // sync period