Skip to content

Commit 95992cb

Browse files
authored
fix(apple_silicon): remove of cli's default value of type in CreateServerRequest (#3794)
1 parent 317463f commit 95992cb

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

cmd/scw/testdata/test-all-usage-apple-silicon-server-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ USAGE:
88
ARGS:
99
[name=<generated>] Create a server with this given name
1010
[project-id] Project ID to use. If none is passed the default project ID will be used
11-
[type=M1-M] Create a server of the given type
11+
[type] Create a server of the given type
1212
[os-id] Create a server with the given os_id
1313
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
1414

docs/commands/apple-silicon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ scw apple-silicon server create [arg=value ...]
8888
|------|---|-------------|
8989
| name | Default: `<generated>` | Create a server with this given name |
9090
| project-id | | Project ID to use. If none is passed the default project ID will be used |
91-
| type | Default: `M1-M` | Create a server of the given type |
91+
| type | | Create a server of the given type |
9292
| os-id | | Create a server with the given os_id |
9393
| zone | Default: `fr-par-1`<br />One of: `fr-par-3` | Zone to target. If none is passed will use default zone from the config |
9494

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ require (
2525
github.com/mattn/go-isatty v0.0.20
2626
github.com/moby/buildkit v0.13.2
2727
github.com/opencontainers/go-digest v1.0.0
28-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.26.0.20240425141551-6d81bfd0f8ad
28+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.26.0.20240425150324-84e93b73daba
2929
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
3030
github.com/spf13/cobra v1.8.0
3131
github.com/spf13/pflag v1.0.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
451451
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
452452
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
453453
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
454-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.26.0.20240425141551-6d81bfd0f8ad h1:M/EeToOFlCAegAHFNC3EFNu7P7vqQrK6vLaigi3y1Ew=
455-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.26.0.20240425141551-6d81bfd0f8ad/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
454+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.26.0.20240425150324-84e93b73daba h1:LD4AyBgbVcm0mqMdQ6xXBrPEwzUYJhkO4+PjHT+pZRM=
455+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.26.0.20240425150324-84e93b73daba/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
456456
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
457457
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
458458
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ func appleSiliconServerCreate() *core.Command {
149149
Required: false,
150150
Deprecated: false,
151151
Positional: false,
152-
Default: core.DefaultValueSetter("M1-M"),
153152
},
154153
{
155154
Name: "os-id",

0 commit comments

Comments
 (0)