Skip to content

Commit

Permalink
chore(instance): update default image to ubuntu_jammy (#2479)
Browse files Browse the repository at this point in the history
  • Loading branch information
Codelax authored Aug 31, 2022
1 parent 7079569 commit 8dddb0e
Show file tree
Hide file tree
Showing 11 changed files with 5,540 additions and 312 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ EXAMPLES:
scw instance server create image=ubuntu_focal ip=$ip

ARGS:
image=ubuntu_focal Image ID or label of the server
image=ubuntu_jammy Image ID or label of the server
[type=DEV1-S] Server commercial type (GP1-XS | GP1-S | GP1-M | GP1-L | GP1-XL | DEV1-S | DEV1-M | DEV1-L | DEV1-XL | RENDER-S | STARDUST1-S | ENT1-S | ENT1-M | ENT1-L | ENT1-XL | ENT1-2XL | PRO2-XXS | PRO2-XS | PRO2-S | PRO2-M | PRO2-L | PLAY2-PICO | PLAY2-NANO | PLAY2-MICRO | GPU-3070-S)
[name=<generated>] Server name
[root-volume] Local root volume of the server
Expand Down
2 changes: 1 addition & 1 deletion docs/commands/instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ scw instance server create [arg=value ...]

| Name | | Description |
|------|---|-------------|
| image | Required<br />Default: `ubuntu_focal` | Image ID or label of the server |
| image | Required<br />Default: `ubuntu_jammy` | Image ID or label of the server |
| type | Default: `DEV1-S`<br />One of: `GP1-XS`, `GP1-S`, `GP1-M`, `GP1-L`, `GP1-XL`, `DEV1-S`, `DEV1-M`, `DEV1-L`, `DEV1-XL`, `RENDER-S`, `STARDUST1-S`, `ENT1-S`, `ENT1-M`, `ENT1-L`, `ENT1-XL`, `ENT1-2XL`, `PRO2-XXS`, `PRO2-XS`, `PRO2-S`, `PRO2-M`, `PRO2-L`, `PLAY2-PICO`, `PLAY2-NANO`, `PLAY2-MICRO`, `GPU-3070-S` | Server commercial type |
| name | Default: `<generated>` | Server name |
| root-volume | | Local root volume of the server |
Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/instance/v1/custom_server_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func serverCreateCommand() *core.Command {
{
Name: "image",
Short: "Image ID or label of the server",
Default: core.DefaultValueSetter("ubuntu_focal"),
Default: core.DefaultValueSetter("ubuntu_jammy"),
Required: true,
AutoCompleteFunc: instanceServerCreateImageAutoCompleteFunc,
},
Expand Down
1,429 changes: 1,367 additions & 62 deletions internal/namespaces/instance/v1/testdata/test-ip-attach-with-ip.cassette.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
IP.ID edb87e2b-3637-4cb3-bca6-afaab47f6a30
IP.Address 51.15.129.58
IP.Server.ID f8719720-3296-4553-be7b-948fcf0e7396
IP.Server.Name cli-srv-hopeful-ramanujan
IP.Organization 951df375-e094-4d26-97c1-ba548eeb9c42
IP.Project 951df375-e094-4d26-97c1-ba548eeb9c42
IP.ID 21601ab1-8b75-4d2f-bbb0-2b8b71c4bc13
IP.Address 51.15.252.241
IP.Server.ID 6413b5bc-45ef-4ed3-90f4-20a8decef6da
IP.Server.Name cli-srv-vigorous-mclaren
IP.Organization ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b
IP.Project ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b
IP.Zone fr-par-1
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
{
"ip": {
"id": "edb87e2b-3637-4cb3-bca6-afaab47f6a30",
"address": "51.15.129.58",
"id": "21601ab1-8b75-4d2f-bbb0-2b8b71c4bc13",
"address": "51.15.252.241",
"reverse": null,
"server": {
"id": "f8719720-3296-4553-be7b-948fcf0e7396",
"name": "cli-srv-hopeful-ramanujan"
"id": "6413b5bc-45ef-4ed3-90f4-20a8decef6da",
"name": "cli-srv-vigorous-mclaren"
},
"organization": "951df375-e094-4d26-97c1-ba548eeb9c42",
"organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b",
"tags": [],
"project": "951df375-e094-4d26-97c1-ba548eeb9c42",
"project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b",
"zone": "fr-par-1"
}
}
1,431 changes: 1,368 additions & 63 deletions internal/namespaces/instance/v1/testdata/test-ip-attach-with-uuid.cassette.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
IP.ID edb87e2b-3637-4cb3-bca6-afaab47f6a30
IP.Address 51.15.129.58
IP.Server.ID 0c6bf495-cec4-4d75-902c-b1468dfb2af8
IP.Server.Name cli-srv-intelligent-banach
IP.Organization 951df375-e094-4d26-97c1-ba548eeb9c42
IP.Project 951df375-e094-4d26-97c1-ba548eeb9c42
IP.ID 21601ab1-8b75-4d2f-bbb0-2b8b71c4bc13
IP.Address 51.15.252.241
IP.Server.ID af38e61c-3ddb-4015-969e-9b6c94ba836c
IP.Server.Name cli-srv-gifted-elion
IP.Organization ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b
IP.Project ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b
IP.Zone fr-par-1
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
{
"ip": {
"id": "edb87e2b-3637-4cb3-bca6-afaab47f6a30",
"address": "51.15.129.58",
"id": "21601ab1-8b75-4d2f-bbb0-2b8b71c4bc13",
"address": "51.15.252.241",
"reverse": null,
"server": {
"id": "0c6bf495-cec4-4d75-902c-b1468dfb2af8",
"name": "cli-srv-intelligent-banach"
"id": "af38e61c-3ddb-4015-969e-9b6c94ba836c",
"name": "cli-srv-gifted-elion"
},
"organization": "951df375-e094-4d26-97c1-ba548eeb9c42",
"organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b",
"tags": [],
"project": "951df375-e094-4d26-97c1-ba548eeb9c42",
"project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b",
"zone": "fr-par-1"
}
}
1,461 changes: 1,386 additions & 75 deletions internal/namespaces/instance/v1/testdata/test-ip-detach-with-ip.cassette.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
IP.ID edb87e2b-3637-4cb3-bca6-afaab47f6a30
IP.Address 51.15.129.58
IP.Organization 951df375-e094-4d26-97c1-ba548eeb9c42
IP.Project 951df375-e094-4d26-97c1-ba548eeb9c42
IP.ID 21601ab1-8b75-4d2f-bbb0-2b8b71c4bc13
IP.Address 51.15.252.241
IP.Organization ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b
IP.Project ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b
IP.Zone fr-par-1
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
{
"ip": {
"id": "edb87e2b-3637-4cb3-bca6-afaab47f6a30",
"address": "51.15.129.58",
"id": "21601ab1-8b75-4d2f-bbb0-2b8b71c4bc13",
"address": "51.15.252.241",
"reverse": null,
"server": null,
"organization": "951df375-e094-4d26-97c1-ba548eeb9c42",
"organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b",
"tags": [],
"project": "951df375-e094-4d26-97c1-ba548eeb9c42",
"project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b",
"zone": "fr-par-1"
}
}
1,445 changes: 1,376 additions & 69 deletions internal/namespaces/instance/v1/testdata/test-ip-detach-with-uuid.cassette.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
IP.ID edb87e2b-3637-4cb3-bca6-afaab47f6a30
IP.Address 51.15.129.58
IP.Organization 951df375-e094-4d26-97c1-ba548eeb9c42
IP.Project 951df375-e094-4d26-97c1-ba548eeb9c42
IP.ID 21601ab1-8b75-4d2f-bbb0-2b8b71c4bc13
IP.Address 51.15.252.241
IP.Organization ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b
IP.Project ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b
IP.Zone fr-par-1
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
{
"ip": {
"id": "edb87e2b-3637-4cb3-bca6-afaab47f6a30",
"address": "51.15.129.58",
"id": "21601ab1-8b75-4d2f-bbb0-2b8b71c4bc13",
"address": "51.15.252.241",
"reverse": null,
"server": null,
"organization": "951df375-e094-4d26-97c1-ba548eeb9c42",
"organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b",
"tags": [],
"project": "951df375-e094-4d26-97c1-ba548eeb9c42",
"project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b",
"zone": "fr-par-1"
}
}

0 comments on commit 8dddb0e

Please sign in to comment.