Explicitly use storage.k8s.io/v1beta1 everywhere.

v1 is not yet awailable on GKE and tests would fail.
This commit is contained in:
Jan Safranek
2017-03-01 22:09:09 +01:00
parent 5f62491e22
commit a39bd53509
4 changed files with 11 additions and 11 deletions

View File

@@ -158,7 +158,7 @@ func GetClassForVolume(kubeClient clientset.Interface, pv *v1.PersistentVolume)
return nil, fmt.Errorf("Volume has no class annotation")
}
class, err := kubeClient.Storage().StorageClasses().Get(className, metav1.GetOptions{})
class, err := kubeClient.StorageV1beta1().StorageClasses().Get(className, metav1.GetOptions{})
if err != nil {
return nil, err
}