Skip to content

Commit c085d74

Browse files
feat(instance): set bootscript as deprecated in the public api (#2758)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 0466506 commit c085d74

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

cmd/scw/testdata/test-all-usage-instance-image-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ ARGS:
1313
[name=<generated>] Name of the image
1414
snapshot-id UUID of the snapshot that will be used as root volume in the image
1515
arch Architecture of the image (x86_64 | arm)
16-
[default-bootscript] Default bootscript of the image
1716
[additional-snapshots.{index}.id] UUID of the snapshot to add
1817
[additional-snapshots.{index}.name] Name of the additional snapshot
1918
[additional-snapshots.{index}.size] Size of the additional snapshot
@@ -26,6 +25,7 @@ ARGS:
2625
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | pl-waw-1 | pl-waw-2)
2726

2827
DEPRECATED ARGS:
28+
[default-bootscript] Default bootscript of the image
2929
[additional-snapshots.{index}.organization-id] Organization ID that own the additional snapshot
3030

3131
FLAGS:

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ ARGS:
3535
[volumes.{key}.base-snapshot] The ID of the snapshot on which this volume will be based
3636
[volumes.{key}.project] Project ID of the volume
3737
[volumes.{key}.organization] Organization ID of the volume
38-
[bootscript]
3938
[dynamic-ip-required]
4039
[enable-ipv6]
4140
[protected]
@@ -49,6 +48,9 @@ ARGS:
4948
[private-nics.{index}.state] The private NIC state (available | syncing | syncing_error)
5049
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | pl-waw-1 | pl-waw-2)
5150

51+
DEPRECATED ARGS:
52+
[bootscript]
53+
5254
FLAGS:
5355
-h, --help help for update
5456

docs/commands/instance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ scw instance image create [arg=value ...]
105105
| name | Default: `<generated>` | Name of the image |
106106
| snapshot-id | Required | UUID of the snapshot that will be used as root volume in the image |
107107
| arch | Required<br />One of: `x86_64`, `arm` | Architecture of the image |
108-
| default-bootscript | | Default bootscript of the image |
108+
| ~~default-bootscript~~ | Deprecated | Default bootscript of the image |
109109
| additional-snapshots.{index}.id | | UUID of the snapshot to add |
110110
| additional-snapshots.{index}.name | | Name of the additional snapshot |
111111
| additional-snapshots.{index}.size | | Size of the additional snapshot |
@@ -1823,7 +1823,7 @@ scw instance server update <server-id ...> [arg=value ...]
18231823
| volumes.{key}.base-snapshot | | The ID of the snapshot on which this volume will be based |
18241824
| volumes.{key}.project | | Project ID of the volume |
18251825
| volumes.{key}.organization | | Organization ID of the volume |
1826-
| bootscript | | |
1826+
| ~~bootscript~~ | Deprecated | |
18271827
| dynamic-ip-required | | |
18281828
| enable-ipv6 | | |
18291829
| protected | | |

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require (
1818
github.com/kubernetes-client/go-base v0.0.0-20190205182333-3d0e39759d98
1919
github.com/mattn/go-colorable v0.1.13
2020
github.com/mattn/go-isatty v0.0.17
21-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.12.0.20230203110828-1b2807d77032
21+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.13
2222
github.com/spf13/cobra v1.6.1
2323
github.com/spf13/pflag v1.0.5
2424
github.com/stretchr/testify v1.8.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ github.com/pkg/term v1.1.0/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw
7070
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
7171
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
7272
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
73-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.12.0.20230203110828-1b2807d77032 h1:U2vE7i6HU67qiuXWWtdjzHDUaspEdF+CnHPFHZTsSds=
74-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.12.0.20230203110828-1b2807d77032/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
73+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.13 h1:n5J2K6g/kl/iT6mODjCoSoRBGQVmIG3aMtYbofi9kxc=
74+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.13/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
7575
github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
7676
github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
7777
github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA=

internal/namespaces/instance/v1/instance_cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ func instanceServerUpdate() *core.Command {
631631
{
632632
Name: "bootscript",
633633
Required: false,
634-
Deprecated: false,
634+
Deprecated: true,
635635
Positional: false,
636636
},
637637
{
@@ -1074,7 +1074,7 @@ func instanceImageCreate() *core.Command {
10741074
Name: "default-bootscript",
10751075
Short: `Default bootscript of the image`,
10761076
Required: false,
1077-
Deprecated: false,
1077+
Deprecated: true,
10781078
Positional: false,
10791079
},
10801080
{

0 commit comments

Comments
 (0)