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" {
 | 
									if attributes["storage"] != "EBS only" {
 | 
				
			||||||
					storage := strings.Split(attributes["storage"], " ")
 | 
										storage := strings.Split(attributes["storage"], " ")
 | 
				
			||||||
					count := stringToInt(storage[0])
 | 
					 | 
				
			||||||
					var size int
 | 
										var size int
 | 
				
			||||||
					if storage[2] == "NVMe" {
 | 
										var count int
 | 
				
			||||||
						count = 1
 | 
										if len(storage) > 1 {
 | 
				
			||||||
						size = stringToInt(storage[0])
 | 
											count = stringToInt(storage[0])
 | 
				
			||||||
 | 
											if storage[2] == "NVMe" {
 | 
				
			||||||
 | 
												count = 1
 | 
				
			||||||
 | 
												size = stringToInt(storage[0])
 | 
				
			||||||
 | 
											} else {
 | 
				
			||||||
 | 
												size = stringToInt(storage[2])
 | 
				
			||||||
 | 
											}
 | 
				
			||||||
					} else {
 | 
										} else {
 | 
				
			||||||
						size = stringToInt(storage[2])
 | 
											count = 0
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
					ephemeralDisks := []int{}
 | 
										ephemeralDisks := []int{}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue