Skip to content

Commit bb4227e

Browse files
authored
Merge branch 'master' into v1.6358.0
2 parents e3c8b79 + c27dbbc commit bb4227e

12 files changed

+59
-48
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ARGS:
3434
[volumes.{key}.organization] Organization ID of the volume
3535
[dynamic-ip-required]
3636
[public-ips.{index}] A list of reserved IP IDs to attach to the Instance
37-
[protected]
37+
[protected] True to activate server protection option
3838
[security-group-id]
3939
[volume-ids.{index}] Will update ALL volume IDs at once, including the root volume of the server (use volume-ids=none to detach all volumes)
4040
[placement-group-id] Placement group ID if Instance must be part of a placement group

docs/commands/instance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2301,7 +2301,7 @@ scw instance server update <server-id ...> [arg=value ...]
23012301
| ~~routed-ip-enabled~~ | Deprecated | True to configure the instance so it uses the new routed IP mode (once this is set to True you cannot set it back to False) |
23022302
| public-ips.{index} | | A list of reserved IP IDs to attach to the Instance |
23032303
| ~~enable-ipv6~~ | Deprecated | |
2304-
| protected | | |
2304+
| protected | | True to activate server protection option |
23052305
| security-group-id | | |
23062306
| volume-ids.{index} | | Will update ALL volume IDs at once, including the root volume of the server (use volume-ids=none to detach all volumes) |
23072307
| placement-group-id | | Placement group ID if Instance must be part of a placement group |

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
github.com/mattn/go-isatty v0.0.20
2424
github.com/moby/buildkit v0.13.2
2525
github.com/opencontainers/go-digest v1.0.0
26-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250402123125-11d6084394b9
26+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250408082303-4ecf08b8a1ef
2727
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2828
github.com/spf13/cobra v1.9.1
2929
github.com/spf13/pflag v1.0.6

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
462462
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
463463
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
464464
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
465-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250402123125-11d6084394b9 h1:VNBzqf91PUmi+HTyp6+7Uxdq/A1b7eWouokHZiZxt0E=
466-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250402123125-11d6084394b9/go.mod h1:792k1RTU+5JeMXm35/e2Wgp71qPH/DmDoZrRc+EFZDk=
465+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250408082303-4ecf08b8a1ef h1:e0aETjcCykw59oyfal17KonPnJjnIsYKt4y9GHrwYjM=
466+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250408082303-4ecf08b8a1ef/go.mod h1:ILAZV9jmsf+YmJ8UGNpZ9rUnKtHs5EqnBFv47qqYcaU=
467467
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
468468
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
469469
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/instance/v1/instance_cli.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,7 @@ func instanceServerUpdate() *core.Command {
675675
},
676676
{
677677
Name: "protected",
678+
Short: `True to activate server protection option`,
678679
Required: false,
679680
Deprecated: false,
680681
Positional: false,

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
@@ -70,6 +70,7 @@ SecurityGroup.Name Default security group
7070
StateDetail -
7171
Arch x86_64
7272
Zone fr-par-2
73+
EndOfService false
7374
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
7475
{
7576
"id": "9851b09c-1c2b-4fef-bc06-7ce31ff3188a",
@@ -189,5 +190,6 @@ Zone fr-par-2
189190
"private_nics": [],
190191
"zone": "fr-par-2",
191192
"admin_password_encryption_ssh_key_id": null,
192-
"admin_password_encrypted_value": null
193+
"admin_password_encrypted_value": null,
194+
"end_of_service": false
193195
}

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
@@ -39,6 +39,7 @@ SecurityGroup.Name Default security group
3939
StateDetail -
4040
Arch x86_64
4141
Zone fr-par-1
42+
EndOfService false
4243
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
4344
{
4445
"id": "cf1cfe02-38f9-4fce-bc1c-ab61925cff05",
@@ -116,5 +117,6 @@ Zone fr-par-1
116117
"private_nics": [],
117118
"zone": "fr-par-1",
118119
"admin_password_encryption_ssh_key_id": null,
119-
"admin_password_encrypted_value": null
120+
"admin_password_encrypted_value": null,
121+
"end_of_service": false
120122
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ SecurityGroup.Name Default security group
2020
StateDetail -
2121
Arch x86_64
2222
Zone fr-par-1
23+
EndOfService false
2324

2425
Server Image:
2526
ID 63d40353-5519-46d0-9172-ccf4885954e1
@@ -128,6 +129,7 @@ ID MAC ADDRESS PRIVATE NETWORK NAME PRIVATE NETWORK ID
128129
"zone": "fr-par-1",
129130
"admin_password_encryption_ssh_key_id": null,
130131
"admin_password_encrypted_value": null,
132+
"end_of_service": false,
131133
"Volumes": [
132134
{
133135
"id": "7b8f71d4-d089-4ba4-a713-6916e7d91c6c",

internal/namespaces/instance/v1/testdata/test-server-action-manual-poweron.golden

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ SecurityGroup.Name Default security group
4343
StateDetail booting kernel
4444
Arch x86_64
4545
Zone fr-par-1
46+
EndOfService false
4647
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
4748
{
4849
"id": "5c79fa34-9760-4cf7-94a8-ae28003c2353",
@@ -129,5 +130,6 @@ Zone fr-par-1
129130
"private_nics": [],
130131
"zone": "fr-par-1",
131132
"admin_password_encryption_ssh_key_id": null,
132-
"admin_password_encrypted_value": null
133+
"admin_password_encrypted_value": null,
134+
"end_of_service": false
133135
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Server.SecurityGroup.Name Default security group
3939
Server.StateDetail -
4040
Server.Arch x86_64
4141
Server.Zone fr-par-1
42+
Server.EndOfService false
4243
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
4344
{
4445
"server": {
@@ -117,6 +118,7 @@ Server.Zone fr-par-1
117118
"private_nics": [],
118119
"zone": "fr-par-1",
119120
"admin_password_encryption_ssh_key_id": null,
120-
"admin_password_encrypted_value": null
121+
"admin_password_encrypted_value": null,
122+
"end_of_service": false
121123
}
122124
}

0 commit comments

Comments
 (0)