AWS: Use GiB as units for disk sizes.

From some reason, MiBs were used for public functions and AWS cloud provider
recalculated them to GiB. Let's expose what AWS really supports and don't hide
real allocation units.
This commit is contained in:
Jan Safranek
2015-12-15 10:18:00 +01:00
parent 775369a8f1
commit 700d92c2a8
2 changed files with 5 additions and 4 deletions

View File

@@ -18,11 +18,12 @@ package e2e
import (
"fmt"
"google.golang.org/api/googleapi"
mathrand "math/rand"
"strings"
"time"
"google.golang.org/api/googleapi"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"k8s.io/kubernetes/pkg/api"
@@ -326,7 +327,7 @@ func createPD() (string, error) {
return "", fmt.Errorf("Provider does not support volumes")
}
volumeOptions := &awscloud.VolumeOptions{}
volumeOptions.CapacityMB = 10 * 1024
volumeOptions.CapacityGB = 10
return volumes.CreateVolume(volumeOptions)
}
}