Skip to content

Commit f98a6b9

Browse files
authored
feat(instance): add tags in Server.public_ips (#3411)
1 parent 37d086d commit f98a6b9

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ ARGS:
4444
[public-ips.{index}.family] IP address family (inet or inet6) (inet | inet6)
4545
[public-ips.{index}.dynamic] True if the IP address is dynamic
4646
[public-ips.{index}.provisioning-mode] Information about this address provisioning mode (manual | dhcp | slaac)
47+
[public-ips.{index}.tags.{index}] Tags associated with the IP
4748
[enable-ipv6]
4849
[protected]
4950
[security-group-id]

docs/commands/instance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2270,6 +2270,7 @@ scw instance server update <server-id ...> [arg=value ...]
22702270
| public-ips.{index}.family | One of: `inet`, `inet6` | IP address family (inet or inet6) |
22712271
| public-ips.{index}.dynamic | | True if the IP address is dynamic |
22722272
| public-ips.{index}.provisioning-mode | One of: `manual`, `dhcp`, `slaac` | Information about this address provisioning mode |
2273+
| public-ips.{index}.tags.{index} | | Tags associated with the IP |
22732274
| enable-ipv6 | | |
22742275
| protected | | |
22752276
| security-group-id | | |

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.20231010150122-9c4e77db43f9
27+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231010165413-fd6263b48233
2828
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2929
github.com/spf13/cobra v1.7.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
@@ -487,8 +487,8 @@ github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDN
487487
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
488488
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
489489
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
490-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231010150122-9c4e77db43f9 h1:mKdnDBxbTvQR+5N8xbXJdshq3zk0uAjUL2GZE4lwYCc=
491-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231010150122-9c4e77db43f9/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
490+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231010165413-fd6263b48233 h1:1y6zYYJ6q0G3UlWTnaTVu3LN3y2kLBOgIr05QtNic5Q=
491+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231010165413-fd6263b48233/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
492492
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
493493
github.com/secure-systems-lab/go-securesystemslib v0.4.0 h1:b23VGrQhTA8cN2CbBw7/FulN9fTtqYUdS5+Oxzt+DUE=
494494
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=

internal/namespaces/instance/v1/instance_cli.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,13 @@ func instanceServerUpdate() *core.Command {
726726
Positional: false,
727727
EnumValues: []string{"manual", "dhcp", "slaac"},
728728
},
729+
{
730+
Name: "public-ips.{index}.tags.{index}",
731+
Short: `Tags associated with the IP`,
732+
Required: false,
733+
Deprecated: false,
734+
Positional: false,
735+
},
729736
{
730737
Name: "enable-ipv6",
731738
Required: false,

0 commit comments

Comments
 (0)