create all pvs.

This commit is contained in:
Jan Mußler 2020-12-08 23:43:57 +01:00
parent 3e3f3f8352
commit 17966ffcbf
1 changed files with 3 additions and 1 deletions

View File

@ -260,7 +260,9 @@ func TestMigrateEBS(t *testing.T) {
cluster.KubeClient.PersistentVolumeClaims(namespace).Create(context.TODO(), &pvc, metav1.CreateOptions{})
}
cluster.KubeClient.PersistentVolumes().Create(context.TODO(), &pvList.Items[0], metav1.CreateOptions{})
for _, pv := range pvList.Items {
cluster.KubeClient.PersistentVolumes().Create(context.TODO(), &pv, metav1.CreateOptions{})
}
pod := v1.Pod{
ObjectMeta: metav1.ObjectMeta{