Skip to content

Commit 243f621

Browse files
committed
Merge pull request #328 from QuentinPerez/VC1S
Switch to VC1S
2 parents 4740b7b + 14e4b60 commit 243f621

File tree

7 files changed

+32
-31
lines changed

7 files changed

+32
-31
lines changed

README.md

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -316,14 +316,14 @@ Create a new server but do not start it.
316316

317317
Options:
318318

319-
--bootscript="" Assign a bootscript
320-
--commercial-type=VC1 Create a server with specific commercial-type C1, VC1, C2[S|M|L]
321-
-e, --env="" Provide metadata tags passed to initrd (i.e., boot=resue INITRD_DEBUG=1)
322-
-h, --help=false Print usage
323-
--ip-address=dynamic Assign a reserved public IP, a 'dynamic' one or 'none'
324-
--name="" Assign a name
325-
--tmp-ssh-key=false Access your server without uploading your SSH key to your account
326-
-v, --volume="" Attach additional volume (i.e., 50G)
319+
--bootscript="" Assign a bootscript
320+
--commercial-type=VC1S Create a server with specific commercial-type C1, VC1S, C2[S|M|L]
321+
-e, --env="" Provide metadata tags passed to initrd (i.e., boot=resue INITRD_DEBUG=1)
322+
-h, --help=false Print usage
323+
--ip-address=dynamic Assign a reserved public IP, a 'dynamic' one or 'none'
324+
--name="" Assign a name
325+
--tmp-ssh-key=false Access your server without uploading your SSH key to your account
326+
-v, --volume="" Attach additional volume (i.e., 50G)
327327

328328
Examples:
329329

@@ -691,21 +691,21 @@ Run a command in a new server.
691691

692692
Options:
693693

694-
-a, --attach=false Attach to serial console
695-
--bootscript="" Assign a bootscript
696-
--commercial-type=VC1 Start a server with specific commercial-type C1, VC1, C2[SML]
697-
-d, --detach=false Run server in background and print server ID
698-
-e, --env="" Provide metadata tags passed to initrd (i.e., boot=rescue INITRD_DEBUG=1)
699-
-g, --gateway="" Use a SSH gateway
700-
-h, --help=false Print usage
701-
--ip-address="" Assign a reserved public IP, a 'dynamic' one or 'none' (default to 'none' if gateway specified, 'dynamic' otherwise)
702-
--name="" Assign a name
703-
--rm=false Automatically remove the server when it exits
704-
--show-boot=false Allows to show the boot
705-
-T, --timeout=0 Set timeout value to seconds
706-
--tmp-ssh-key=false Access your server without uploading your SSH key to your account
707-
-u, --userdata="" Start a server with userdata predefined
708-
-v, --volume="" Attach additional volume (i.e., 50G)
694+
-a, --attach=false Attach to serial console
695+
--bootscript="" Assign a bootscript
696+
--commercial-type=VC1S Start a server with specific commercial-type C1, VC1S, C2[SML]
697+
-d, --detach=false Run server in background and print server ID
698+
-e, --env="" Provide metadata tags passed to initrd (i.e., boot=rescue INITRD_DEBUG=1)
699+
-g, --gateway="" Use a SSH gateway
700+
-h, --help=false Print usage
701+
--ip-address="" Assign a reserved public IP, a 'dynamic' one or 'none' (default to 'none' if gateway specified, 'dynamic' otherwise)
702+
--name="" Assign a name
703+
--rm=false Automatically remove the server when it exits
704+
--show-boot=false Allows to show the boot
705+
-T, --timeout=0 Set timeout value to seconds
706+
--tmp-ssh-key=false Access your server without uploading your SSH key to your account
707+
-u, --userdata="" Start a server with userdata predefined
708+
-v, --volume="" Attach additional volume (i.e., 50G)
709709

710710
Examples:
711711

@@ -1184,6 +1184,7 @@ $ scw inspect myserver | jq '.[0].public_ip.address'
11841184
### master (unreleased)
11851185

11861186
* Fix bug when using SCW_COMMERCIAL_TYPE variable
1187+
* Switch to VC1S
11871188

11881189
View full [commits list](https://github.com/scaleway/scaleway-cli/compare/v1.8.1...master)
11891190

examples/create-image-from-http.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ NAME=$(basename "${URL}")
1717
SNAPSHOT_NAME=${NAME%.*}-$(date +%Y-%m-%d_%H:%M)
1818
IMAGE_NAME=${IMAGE_NAME:-$SNAPSHOT_NAME}
1919
IMAGE_BOOTSCRIPT=${IMAGE_BOOTSCRIPT:stable}
20-
SCW_COMMERCIAL_TYPE=${SCW_COMMERCIAL_TYPE:-VC1}
20+
SCW_COMMERCIAL_TYPE=${SCW_COMMERCIAL_TYPE:-VC1S}
2121
VOLUME_SIZE=${VOLUME_SIZE:-50GB}
2222
SCW_TARGET_ARCH=x86_64
2323
if [ "$SCW_COMMERCIAL_TYPE" = "C1" ]; then

pkg/api/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ type ScalewayServer struct {
511511
// Organization is the owner of the server
512512
Organization string `json:"organization,omitempty"`
513513

514-
// CommercialType is the commercial type of the server (i.e: C1, C2[SML], VC1)
514+
// CommercialType is the commercial type of the server (i.e: C1, C2[SML], VC1S)
515515
CommercialType string `json:"commercial_type,omitempty"`
516516

517517
// Location of the server
@@ -568,7 +568,7 @@ type ScalewayServerDefinition struct {
568568
// Organization is the owner of the server
569569
Organization string `json:"organization"`
570570

571-
// CommercialType is the commercial type of the server (i.e: C1, C2[SML], VC1)
571+
// CommercialType is the commercial type of the server (i.e: C1, C2[SML], VC1S)
572572
CommercialType string `json:"commercial_type"`
573573

574574
PublicIP string `json:"public_ip,omitempty"`

pkg/cli/cmd_create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func init() {
3131
cmdCreate.Flag.StringVar(&createEnv, []string{"e", "-env"}, "", "Provide metadata tags passed to initrd (i.e., boot=resue INITRD_DEBUG=1)")
3232
cmdCreate.Flag.StringVar(&createVolume, []string{"v", "-volume"}, "", "Attach additional volume (i.e., 50G)")
3333
cmdCreate.Flag.StringVar(&createIPAddress, []string{"-ip-address"}, "dynamic", "Assign a reserved public IP, a 'dynamic' one or 'none'")
34-
cmdCreate.Flag.StringVar(&createCommercialType, []string{"-commercial-type"}, "VC1", "Create a server with specific commercial-type C1, VC1, C2[S|M|L]")
34+
cmdCreate.Flag.StringVar(&createCommercialType, []string{"-commercial-type"}, "VC1S", "Create a server with specific commercial-type C1, VC1S, C2[S|M|L]")
3535
cmdCreate.Flag.BoolVar(&createHelp, []string{"h", "-help"}, false, "Print usage")
3636
cmdCreate.Flag.BoolVar(&createTmpSSHKey, []string{"-tmp-ssh-key"}, false, "Access your server without uploading your SSH key to your account")
3737
}

pkg/cli/cmd_run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func init() {
4545
cmdRun.Flag.BoolVar(&runDetachFlag, []string{"d", "-detach"}, false, "Run server in background and print server ID")
4646
cmdRun.Flag.StringVar(&runGateway, []string{"g", "-gateway"}, "", "Use a SSH gateway")
4747
cmdRun.Flag.StringVar(&runUserdatas, []string{"u", "-userdata"}, "", "Start a server with userdata predefined")
48-
cmdRun.Flag.StringVar(&runCommercialType, []string{"-commercial-type"}, "VC1", "Start a server with specific commercial-type C1, VC1, C2[SML]")
48+
cmdRun.Flag.StringVar(&runCommercialType, []string{"-commercial-type"}, "VC1S", "Start a server with specific commercial-type C1, VC1S, C2[SML]")
4949
cmdRun.Flag.BoolVar(&runAutoRemove, []string{"-rm"}, false, "Automatically remove the server when it exits")
5050
cmdRun.Flag.BoolVar(&runTmpSSHKey, []string{"-tmp-ssh-key"}, false, "Access your server without uploading your SSH key to your account")
5151
cmdRun.Flag.BoolVar(&runShowBoot, []string{"-show-boot"}, false, "Allows to show the boot")

pkg/commands/create_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func TestRunCreate_realAPI(t *testing.T) {
6363
args := CreateArgs{
6464
Name: "unittest-create-standard",
6565
Image: "ubuntu-wily",
66-
CommercialType: "VC1",
66+
CommercialType: "VC1S",
6767
}
6868

6969
scopedCtx, scopedStdout, scopedStderr := getScopedCtx(ctx)

pkg/commands/run_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ func ExampleRun() {
88
ctx := testCommandContext()
99
args := RunArgs{
1010
Image: "ubuntu-trusty",
11-
CommercialType: "VC1",
11+
CommercialType: "VC1S",
1212
}
1313
Run(ctx, args)
1414
}
@@ -23,7 +23,7 @@ func ExampleRun_complex() {
2323
Gateway: "my-gateway",
2424
Image: "ubuntu-trusty",
2525
Name: "my-test-server",
26-
CommercialType: "VC1",
26+
CommercialType: "VC1S",
2727
Tags: []string{"testing", "fake"},
2828
Volumes: []string{"50G", "1G"},
2929
}

0 commit comments

Comments
 (0)