mirror of https://github.com/kubernetes/kops.git
				
				
				
			ports should also use replaced name
This commit is contained in:
		
							parent
							
								
									ad43fb0eea
								
							
						
					
					
						commit
						306895fb4b
					
				|  | @ -38,7 +38,8 @@ func (os *clusterDiscoveryOS) ListPorts() ([]*resources.Resource, error) { | |||
| 	} | ||||
| 
 | ||||
| 	for _, port := range ports { | ||||
| 		if strings.Contains(port.Name, os.clusterName) { | ||||
| 		clusteReplaced := strings.Replace(os.clusterName, ".", "-", -1) | ||||
| 		if strings.HasSuffix(port.Name, clusteReplaced) { | ||||
| 			resourceTracker := &resources.Resource{ | ||||
| 				Name: port.Name, | ||||
| 				ID:   port.ID, | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue