Skip to content

Commit 058bf38

Browse files
authored
chore(instance): mark Volume's base_volume as deprecated (#3489)
1 parent 7ae70ce commit 058bf38

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ ARGS:
2121
[tags.{index}] Volume tags
2222
[volume-type] Volume type (l_ssd | b_ssd | unified | scratch | sbs_volume | sbs_snapshot)
2323
[size] Volume disk size, must be a multiple of 512
24-
[base-volume] ID of the volume on which this volume will be based
2524
[base-snapshot] ID of the snapshot on which this volume will be based
2625
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
2726
[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 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
2827

28+
DEPRECATED ARGS:
29+
[base-volume] ID of the volume on which this volume will be based
30+
2931
FLAGS:
3032
-h, --help help for create
3133

docs/commands/instance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2913,7 +2913,7 @@ scw instance volume create [arg=value ...]
29132913
| tags.{index} | | Volume tags |
29142914
| volume-type | One of: `l_ssd`, `b_ssd`, `unified`, `scratch`, `sbs_volume`, `sbs_snapshot` | Volume type |
29152915
| size | | Volume disk size, must be a multiple of 512 |
2916-
| base-volume | | ID of the volume on which this volume will be based |
2916+
| ~~base-volume~~ | Deprecated | ID of the volume on which this volume will be based |
29172917
| base-snapshot | | ID of the snapshot on which this volume will be based |
29182918
| organization-id | | Organization ID to use. If none is passed the default organization ID will be used |
29192919
| 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 |

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require (
2424
github.com/moby/buildkit v0.11.6
2525
github.com/opencontainers/go-digest v1.0.0
2626
github.com/pkg/errors v0.9.1
27-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231110143144-15d133efb1a7
27+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231113154526-f7d9669f9369
2828
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2929
github.com/spf13/cobra v1.8.0
3030
github.com/spf13/pflag v1.0.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,8 @@ github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDN
490490
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
491491
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
492492
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
493-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231110143144-15d133efb1a7 h1:4q9+x0UOZj3vr+KyJb3tmH8O40IumJLzWTCLjk2a1f0=
494-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231110143144-15d133efb1a7/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
493+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231113154526-f7d9669f9369 h1:EmtsNvuv6ID2Mtj0rn7ed+uxNMiPjbOkinCWJi8d7IM=
494+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231113154526-f7d9669f9369/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
495495
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
496496
github.com/secure-systems-lab/go-securesystemslib v0.4.0 h1:b23VGrQhTA8cN2CbBw7/FulN9fTtqYUdS5+Oxzt+DUE=
497497
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=

internal/namespaces/instance/v1/instance_cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,7 @@ func instanceVolumeCreate() *core.Command {
17191719
Name: "base-volume",
17201720
Short: `ID of the volume on which this volume will be based`,
17211721
Required: false,
1722-
Deprecated: false,
1722+
Deprecated: true,
17231723
Positional: false,
17241724
},
17251725
{

0 commit comments

Comments
 (0)