diff --git a/cmd/scw/testdata/test-all-usage-instance-image-create-usage.golden b/cmd/scw/testdata/test-all-usage-instance-image-create-usage.golden index b223b7a150..fd8c861694 100644 --- a/cmd/scw/testdata/test-all-usage-instance-image-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-image-create-usage.golden @@ -12,7 +12,7 @@ EXAMPLES: ARGS: [name=] Name of the image snapshot-id UUID of the snapshot that will be used as root volume in the image - arch Architecture of the image (x86_64 | arm) + arch Architecture of the image (x86_64 | arm | arm64) [additional-snapshots.{index}.id] UUID of the snapshot to add [additional-snapshots.{index}.name] Name of the additional snapshot [additional-snapshots.{index}.size] Size of the additional snapshot diff --git a/docs/commands/instance.md b/docs/commands/instance.md index 0910dac622..ed18959f30 100644 --- a/docs/commands/instance.md +++ b/docs/commands/instance.md @@ -127,7 +127,7 @@ scw instance image create [arg=value ...] |------|---|-------------| | name | Default: `` | Name of the image | | snapshot-id | Required | UUID of the snapshot that will be used as root volume in the image | -| arch | Required
One of: `x86_64`, `arm` | Architecture of the image | +| arch | Required
One of: `x86_64`, `arm`, `arm64` | Architecture of the image | | ~~default-bootscript~~ | Deprecated | Default bootscript of the image | | additional-snapshots.{index}.id | | UUID of the snapshot to add | | additional-snapshots.{index}.name | | Name of the additional snapshot | diff --git a/go.mod b/go.mod index 8750a0cc08..d63ca6d652 100644 --- a/go.mod +++ b/go.mod @@ -24,7 +24,7 @@ require ( github.com/moby/buildkit v0.11.6 github.com/opencontainers/go-digest v1.0.0 github.com/pkg/errors v0.9.1 - github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230803124132-fffe86137ff6 + github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230807090124-eefdeb5d74c7 github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 github.com/spf13/cobra v1.7.0 github.com/spf13/pflag v1.0.5 diff --git a/go.sum b/go.sum index fbb4a1d6a6..eecf162846 100644 --- a/go.sum +++ b/go.sum @@ -497,8 +497,8 @@ github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncj github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230803124132-fffe86137ff6 h1:kCk70YzD26Ph3Yx4i+cxVM9JOGywJvJcdpgDHuOF0N4= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230803124132-fffe86137ff6/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230807090124-eefdeb5d74c7 h1:vdxIGBnCDJLL/r0HjxVaxAA8xoGz3VT2BKxDbpIVXKw= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230807090124-eefdeb5d74c7/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg= github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8= github.com/secure-systems-lab/go-securesystemslib v0.4.0 h1:b23VGrQhTA8cN2CbBw7/FulN9fTtqYUdS5+Oxzt+DUE= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= diff --git a/internal/namespaces/instance/v1/instance_cli.go b/internal/namespaces/instance/v1/instance_cli.go index 74e4656031..4394037162 100644 --- a/internal/namespaces/instance/v1/instance_cli.go +++ b/internal/namespaces/instance/v1/instance_cli.go @@ -1183,7 +1183,7 @@ func instanceImageCreate() *core.Command { Required: true, Deprecated: false, Positional: false, - EnumValues: []string{"x86_64", "arm"}, + EnumValues: []string{"x86_64", "arm", "arm64"}, }, { Name: "default-bootscript",