Merge pull request #2780 from justincormack/ena

Add support for newer AWS networking types
This commit is contained in:
Justin Cormack 2017-11-29 16:15:49 +00:00 committed by GitHub
commit 390e8d3cb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,8 @@ func pushAWS(args []string) {
timeoutFlag := flags.Int("timeout", 0, "Upload timeout in seconds")
bucketFlag := flags.String("bucket", "", "S3 Bucket to upload to. *Required*")
nameFlag := flags.String("img-name", "", "Overrides the name used to identify the file in Amazon S3 and the VM image. Defaults to the base of 'path' with the file extension removed.")
enaFlag := flags.Bool("ena", false, "Enable ENA networking")
sriovNetFlag := flags.String("sriov", "", "SRIOV network support, set to 'simple' to enable 82599 VF networking")
if err := flags.Parse(args); err != nil {
log.Fatal("Unable to parse args")
@ -158,6 +160,8 @@ func pushAWS(args []string) {
Description: aws.String(fmt.Sprintf("LinuxKit: %s image", name)),
RootDeviceName: aws.String("/dev/sda1"),
VirtualizationType: aws.String("hvm"),
EnaSupport: enaFlag,
SriovNetSupport: sriovNetFlag,
}
log.Debugf("RegisterImage:\n%v", regParams)
regResp, err := compute.RegisterImage(regParams)