Merge pull request #5796 from justinsb/recognize_ubuntu

Recognize ubuntu images in sshUser dumping
This commit is contained in:
k8s-ci-robot 2018-09-17 00:34:48 -07:00 committed by GitHub
commit 2a25ea58de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -477,6 +477,8 @@ func guessSSHUser(image *ec2.Image) string {
return "core"
case awsup.WellKnownAccountKopeio:
return "admin"
case awsup.WellKnownAccountUbuntu:
return "ubuntu"
}
return ""
}

View File

@ -85,6 +85,7 @@ const (
WellKnownAccountRedhat = "309956199498"
WellKnownAccountCoreOS = "595879546273"
WellKnownAccountAmazonSystemLinux2 = "137112412989"
WellKnownAccountUbuntu = "099720109477"
)
type AWSCloud interface {