mirror of https://github.com/kubernetes/kops.git
				
				
				
			Update for NA storage
This commit is contained in:
		
							parent
							
								
									baa5ae3934
								
							
						
					
					
						commit
						663ef95171
					
				| 
						 | 
				
			
			@ -182,14 +182,19 @@ func run() error {
 | 
			
		|||
 | 
			
		||||
				if attributes["storage"] != "EBS only" {
 | 
			
		||||
					storage := strings.Split(attributes["storage"], " ")
 | 
			
		||||
					count := stringToInt(storage[0])
 | 
			
		||||
					var size int
 | 
			
		||||
					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 {
 | 
			
		||||
						count = 0
 | 
			
		||||
					}
 | 
			
		||||
 | 
			
		||||
					ephemeralDisks := []int{}
 | 
			
		||||
					for i := 0; i < count; i++ {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue