mirror of https://github.com/kubernetes/kops.git
Update for NA storage
This commit is contained in:
parent
baa5ae3934
commit
663ef95171
|
|
@ -182,13 +182,18 @@ func run() error {
|
|||
|
||||
if attributes["storage"] != "EBS only" {
|
||||
storage := strings.Split(attributes["storage"], " ")
|
||||
count := stringToInt(storage[0])
|
||||
var size int
|
||||
if storage[2] == "NVMe" {
|
||||
count = 1
|
||||
size = stringToInt(storage[0])
|
||||
var count int
|
||||
if len(storage) > 1 {
|
||||
count = stringToInt(storage[0])
|
||||
if storage[2] == "NVMe" {
|
||||
count = 1
|
||||
size = stringToInt(storage[0])
|
||||
} else {
|
||||
size = stringToInt(storage[2])
|
||||
}
|
||||
} else {
|
||||
size = stringToInt(storage[2])
|
||||
count = 0
|
||||
}
|
||||
|
||||
ephemeralDisks := []int{}
|
||||
|
|
|
|||
Loading…
Reference in New Issue