Skip to content

Commit 7956da5

Browse files
authored
chore: bump-sdk-go (#3842)
1 parent 922e2d9 commit 7956da5

14 files changed

+52
-176
lines changed

cmd/scw/testdata/test-all-usage-instance-server-usage.golden

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,29 @@ USAGE:
88
scw instance server <command>
99

1010
AVAILABLE COMMANDS:
11-
action Perform a raw API action on a server
12-
attach-ip Attach an IP to a server
13-
attach-volume Attach a volume to a server
14-
backup Backup server
15-
console Connect to the serial console of an instance
16-
create Create server
17-
delete Delete server
18-
delete-rdp-password Delete the encrypted RDP password
19-
detach-ip Detach an IP from a server
20-
detach-volume Detach a volume from its server
21-
enable-routed-ip Migrate server to IP mobility
22-
get Get an Instance
23-
list List all Instances
24-
list-actions List Instance actions
25-
reboot Reboot server
26-
ssh SSH into a server
27-
standby Put server in standby mode
28-
start Power on server
29-
stop Power off server
30-
terminate Terminate server
31-
update Update an Instance
11+
action Perform a raw API action on a server
12+
attach-ip Attach an IP to a server
13+
attach-volume Attach a volume to a server
14+
backup Backup server
15+
console Connect to the serial console of an instance
16+
create Create server
17+
delete Delete server
18+
detach-ip Detach an IP from a server
19+
detach-volume Detach a volume from its server
20+
enable-routed-ip Migrate server to IP mobility
21+
get Get an Instance
22+
list List all Instances
23+
list-actions List Instance actions
24+
reboot Reboot server
25+
ssh SSH into a server
26+
standby Put server in standby mode
27+
start Power on server
28+
stop Power off server
29+
terminate Terminate server
30+
update Update an Instance
3231

3332
WORKFLOW COMMANDS:
34-
wait Wait for server to reach a stable state
33+
wait Wait for server to reach a stable state
3534

3635
FLAGS:
3736
-h, --help help for server

cmd/scw/testdata/test-all-usage-k8s-cluster-usage.golden

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,19 @@ USAGE:
77
scw k8s cluster <command>
88

99
AVAILABLE COMMANDS:
10-
create Create a new Cluster
11-
delete Delete a Cluster
12-
get Get a Cluster
13-
list List Clusters
14-
list-available-types List available cluster types for a cluster
15-
list-available-versions List available versions for a Cluster
16-
migrate-to-private-network Migrate an existing cluster to a Private Network cluster
17-
reset-admin-token Reset the admin token of a Cluster
18-
set-type Change the Cluster type
19-
update Update a Cluster
20-
upgrade Upgrade a Cluster
10+
create Create a new Cluster
11+
delete Delete a Cluster
12+
get Get a Cluster
13+
list List Clusters
14+
list-available-types List available cluster types for a cluster
15+
list-available-versions List available versions for a Cluster
16+
reset-admin-token Reset the admin token of a Cluster
17+
set-type Change the Cluster type
18+
update Update a Cluster
19+
upgrade Upgrade a Cluster
2120

2221
WORKFLOW COMMANDS:
23-
wait Wait for a cluster to reach a stable state
22+
wait Wait for a cluster to reach a stable state
2423

2524
FLAGS:
2625
-h, --help help for cluster

docs/commands/instance.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ This API allows you to manage your Instances.
5656
- [Connect to the serial console of an instance](#connect-to-the-serial-console-of-an-instance)
5757
- [Create server](#create-server)
5858
- [Delete server](#delete-server)
59-
- [Delete the encrypted RDP password](#delete-the-encrypted-rdp-password)
6059
- [Detach an IP from a server](#detach-an-ip-from-a-server)
6160
- [Detach a volume from its server](#detach-a-volume-from-its-server)
6261
- [Migrate server to IP mobility](#migrate-server-to-ip-mobility)
@@ -1799,26 +1798,6 @@ scw instance server delete 11111111-1111-1111-1111-111111111111 zone=fr-par-1
17991798

18001799

18011800

1802-
### Delete the encrypted RDP password
1803-
1804-
Delete the initial administrator password for Windows RDP.
1805-
1806-
**Usage:**
1807-
1808-
```
1809-
scw instance server delete-rdp-password [arg=value ...]
1810-
```
1811-
1812-
1813-
**Args:**
1814-
1815-
| Name | | Description |
1816-
|------|---|-------------|
1817-
| server-id | Required | UUID of the Instance |
1818-
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `fr-par-3`, `nl-ams-1`, `nl-ams-2`, `nl-ams-3`, `pl-waw-1`, `pl-waw-2`, `pl-waw-3` | Zone to target. If none is passed will use default zone from the config |
1819-
1820-
1821-
18221801
### Detach an IP from a server
18231802

18241803

docs/commands/k8s.md

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ This API allows you to manage Kubernetes Kapsule and Kosmos clusters.
99
- [List Clusters](#list-clusters)
1010
- [List available cluster types for a cluster](#list-available-cluster-types-for-a-cluster)
1111
- [List available versions for a Cluster](#list-available-versions-for-a-cluster)
12-
- [Migrate an existing cluster to a Private Network cluster](#migrate-an-existing-cluster-to-a-private-network-cluster)
1312
- [Reset the admin token of a Cluster](#reset-the-admin-token-of-a-cluster)
1413
- [Change the Cluster type](#change-the-cluster-type)
1514
- [Update a Cluster](#update-a-cluster)
@@ -302,37 +301,6 @@ scw k8s cluster list-available-versions 11111111-1111-1111-111111111111
302301

303302

304303

305-
### Migrate an existing cluster to a Private Network cluster
306-
307-
Migrate a cluster that was created before the release of Private Network clusters to a new one with a Private Network.
308-
309-
**Usage:**
310-
311-
```
312-
scw k8s cluster migrate-to-private-network <cluster-id ...> [arg=value ...]
313-
```
314-
315-
316-
**Args:**
317-
318-
| Name | | Description |
319-
|------|---|-------------|
320-
| cluster-id | Required | ID of the cluster to migrate |
321-
| private-network-id | Required | ID of the Private Network to link to the cluster |
322-
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
323-
324-
325-
**Examples:**
326-
327-
328-
Migrate a cluster to a Private Network cluster
329-
```
330-
scw k8s cluster migrate-to-private-network 11111111-1111-1111-111111111111 private-network-id=11111111-1111-1111-111111111111
331-
```
332-
333-
334-
335-
336304
### Reset the admin token of a Cluster
337305

338306
Reset the admin token for a specific Kubernetes cluster. This will revoke the old admin token (which will not be usable afterwards) and create a new one. Note that you will need to download kubeconfig again to keep interacting with the cluster.

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.27
28+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.27.0.20240528190933-154da3e5b2e4
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
@@ -453,8 +453,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
453453
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
454454
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
455455
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
456-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.27 h1:yGAraK1uUjlhSXgNMIy8o/J4LFNcy7yeipBqt9N9mVg=
457-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.27/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
456+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.27.0.20240528190933-154da3e5b2e4 h1:fdi2LyED6raOyNM5SsjJF1rS/ufKJ2uVXzAwpZYjVvU=
457+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.27.0.20240528190933-154da3e5b2e4/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
458458
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
459459
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
460460
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/instance/v1/instance_cli.go

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ func GetGeneratedCommands() *core.Commands {
8989
instancePrivateNicGet(),
9090
instancePrivateNicUpdate(),
9191
instancePrivateNicDelete(),
92-
instanceServerDeleteRdpPassword(),
9392
)
9493
}
9594
func instanceRoot() *core.Command {
@@ -3856,39 +3855,3 @@ func instancePrivateNicDelete() *core.Command {
38563855
},
38573856
}
38583857
}
3859-
3860-
func instanceServerDeleteRdpPassword() *core.Command {
3861-
return &core.Command{
3862-
Short: `Delete the encrypted RDP password`,
3863-
Long: `Delete the initial administrator password for Windows RDP.`,
3864-
Namespace: "instance",
3865-
Resource: "server",
3866-
Verb: "delete-rdp-password",
3867-
// Deprecated: false,
3868-
ArgsType: reflect.TypeOf(instance.DeleteEncryptedRdpPasswordRequest{}),
3869-
ArgSpecs: core.ArgSpecs{
3870-
{
3871-
Name: "server-id",
3872-
Short: `UUID of the Instance`,
3873-
Required: true,
3874-
Deprecated: false,
3875-
Positional: false,
3876-
},
3877-
core.ZoneArgSpec(scw.ZoneFrPar1, scw.ZoneFrPar2, scw.ZoneFrPar3, scw.ZoneNlAms1, scw.ZoneNlAms2, scw.ZoneNlAms3, scw.ZonePlWaw1, scw.ZonePlWaw2, scw.ZonePlWaw3),
3878-
},
3879-
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
3880-
request := args.(*instance.DeleteEncryptedRdpPasswordRequest)
3881-
3882-
client := core.ExtractClient(ctx)
3883-
api := instance.NewAPI(client)
3884-
e = api.DeleteEncryptedRdpPassword(request)
3885-
if e != nil {
3886-
return nil, e
3887-
}
3888-
return &core.SuccessResult{
3889-
Resource: "server",
3890-
Verb: "delete-rdp-password",
3891-
}, nil
3892-
},
3893-
}
3894-
}

internal/namespaces/instance/v1/testdata/test-create-server-scratch-storage-default-scratch-storage.golden

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,5 +216,7 @@ Zone fr-par-2
216216
"arch": "x86_64",
217217
"placement_group": null,
218218
"private_nics": [],
219-
"zone": "fr-par-2"
219+
"zone": "fr-par-2",
220+
"admin_password_encryption_ssh_key_id": null,
221+
"admin_password_encrypted_value": null
220222
}

internal/namespaces/instance/v1/testdata/test-create-server-simple-default.golden

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,5 +184,7 @@ Zone fr-par-1
184184
"arch": "x86_64",
185185
"placement_group": null,
186186
"private_nics": [],
187-
"zone": "fr-par-1"
187+
"zone": "fr-par-1",
188+
"admin_password_encryption_ssh_key_id": null,
189+
"admin_password_encrypted_value": null
188190
}

internal/namespaces/instance/v1/testdata/test-get-server-simple.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ ID MAC ADDRESS PRIVATE NETWORK NAME PRIVATE NETWORK ID
178178
"arch": "x86_64",
179179
"placement_group": null,
180180
"zone": "fr-par-1",
181+
"admin_password_encryption_ssh_key_id": null,
182+
"admin_password_encrypted_value": null,
181183
"Volumes": [
182184
{
183185
"id": "c18a3890-01ba-4fed-b9f7-21d7e026c938",

0 commit comments

Comments
 (0)