mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Ensure GCP instance names are a max of 63 characters
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
		@@ -644,7 +644,9 @@ func (g *GCERunner) imageToInstanceName(imageConfig *internalGCEImage) string {
 | 
			
		||||
	}
 | 
			
		||||
	// For benchmark test, node name has the format 'machine-image-uuid' to run
 | 
			
		||||
	// different machine types with the same image in parallel
 | 
			
		||||
	return imageConfig.machine + "-" + imageConfig.image + "-" + uuid.New().String()[:8]
 | 
			
		||||
	name := imageConfig.machine + "-" + imageConfig.image + "-" + uuid.New().String()[:8]
 | 
			
		||||
	// Sometimes the image is too long, we need instance names to have a max length of 63
 | 
			
		||||
	return name[:63]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (g *GCERunner) registerGceHostIP(host string) error {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user