diff --git a/cmd/scw/testdata/test-all-usage-vpc-vpc-create-usage.golden b/cmd/scw/testdata/test-all-usage-vpc-vpc-create-usage.golden index dfe32a5a86..8307bcb557 100644 --- a/cmd/scw/testdata/test-all-usage-vpc-vpc-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-vpc-vpc-create-usage.golden @@ -6,11 +6,12 @@ USAGE: scw vpc vpc create [arg=value ...] ARGS: - name= Name for the VPC - [project-id] Project ID to use. If none is passed the default project ID will be used - [tags.{index}] Tags for the VPC - [enable-routing] Enable routing between Private Networks in the VPC - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | it-mil | nl-ams | pl-waw) + name= Name for the VPC + [project-id] Project ID to use. If none is passed the default project ID will be used + [tags.{index}] Tags for the VPC + [enable-routing] Enable routing between Private Networks in the VPC + [enable-transitivity] Enable packets from peered VPCs to transit through this VPC + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | it-mil | nl-ams | pl-waw) FLAGS: -h, --help help for create diff --git a/docs/commands/vpc.md b/docs/commands/vpc.md index bd9bce6d62..a53708afcb 100644 --- a/docs/commands/vpc.md +++ b/docs/commands/vpc.md @@ -429,6 +429,7 @@ scw vpc vpc create [arg=value ...] | project-id | | Project ID to use. If none is passed the default project ID will be used | | tags.{index} | | Tags for the VPC | | enable-routing | | Enable routing between Private Networks in the VPC | +| enable-transitivity | | Enable packets from peered VPCs to transit through this VPC | | region | Default: `fr-par`
One of: `fr-par`, `it-mil`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | diff --git a/go.mod b/go.mod index 272f0802e1..a8f6d3993c 100644 --- a/go.mod +++ b/go.mod @@ -27,7 +27,7 @@ require ( github.com/moby/moby/client v0.4.1 github.com/modelcontextprotocol/go-sdk v1.6.1 github.com/opencontainers/go-digest v1.0.0 - github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260615185023-d9b5685d2dfe + github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260617140321-14b58fab7bfc github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 github.com/spf13/cobra v1.10.2 github.com/spf13/pflag v1.0.10 diff --git a/go.sum b/go.sum index bff45241f5..bfe1162880 100644 --- a/go.sum +++ b/go.sum @@ -478,8 +478,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7 github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260615185023-d9b5685d2dfe h1:Q3SFnChAE4eKn633Amx9QwXYnqNjfI/HBJBQG+xHWZY= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260615185023-d9b5685d2dfe/go.mod h1:Q02gKOXqKfaCTpImuDgOLzlGin79ZoxxKKEhXHKSrPw= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260617140321-14b58fab7bfc h1:cpFmQ/2R7YdtcWrrpM0as+HLEXeCmpapSyI0u8sptZY= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260617140321-14b58fab7bfc/go.mod h1:Q02gKOXqKfaCTpImuDgOLzlGin79ZoxxKKEhXHKSrPw= github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8= github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM= github.com/secure-systems-lab/go-securesystemslib v0.10.0 h1:l+H5ErcW0PAehBNrBxoGv1jjNpGYdZ9RcheFkB2WI14= diff --git a/internal/namespaces/k8s/v1/testdata/test-pool-remove-label-remove-existing.golden b/internal/namespaces/k8s/v1/testdata/test-pool-remove-label-remove-existing.golden index 99fb12c21e..baf75995b1 100644 --- a/internal/namespaces/k8s/v1/testdata/test-pool-remove-label-remove-existing.golden +++ b/internal/namespaces/k8s/v1/testdata/test-pool-remove-label-remove-existing.golden @@ -19,6 +19,7 @@ RootVolumeType l_ssd RootVolumeSize 40 GB PublicIPDisabled false SecurityGroupID 8bcdc1ce-cda4-4e8f-859f-2aa0aa86e957 +PrivateNetworkID - Region fr-par Upgrade Policy: @@ -64,5 +65,6 @@ KEY VALUE EFFECT "labels": {}, "taints": [], "startup_taints": [], + "private_network_id": "", "region": "fr-par" } diff --git a/internal/namespaces/k8s/v1/testdata/test-pool-remove-startup-taint-remove-existing.golden b/internal/namespaces/k8s/v1/testdata/test-pool-remove-startup-taint-remove-existing.golden index 014032e6c9..8a5b492bf6 100644 --- a/internal/namespaces/k8s/v1/testdata/test-pool-remove-startup-taint-remove-existing.golden +++ b/internal/namespaces/k8s/v1/testdata/test-pool-remove-startup-taint-remove-existing.golden @@ -19,6 +19,7 @@ RootVolumeType l_ssd RootVolumeSize 40 GB PublicIPDisabled false SecurityGroupID 8bcdc1ce-cda4-4e8f-859f-2aa0aa86e957 +PrivateNetworkID - Region fr-par Upgrade Policy: @@ -64,5 +65,6 @@ KEY VALUE EFFECT "labels": {}, "taints": [], "startup_taints": [], + "private_network_id": "", "region": "fr-par" } diff --git a/internal/namespaces/k8s/v1/testdata/test-pool-remove-taint-remove-existing.golden b/internal/namespaces/k8s/v1/testdata/test-pool-remove-taint-remove-existing.golden index 253d139f43..0db8260ce3 100644 --- a/internal/namespaces/k8s/v1/testdata/test-pool-remove-taint-remove-existing.golden +++ b/internal/namespaces/k8s/v1/testdata/test-pool-remove-taint-remove-existing.golden @@ -19,6 +19,7 @@ RootVolumeType l_ssd RootVolumeSize 40 GB PublicIPDisabled false SecurityGroupID 8bcdc1ce-cda4-4e8f-859f-2aa0aa86e957 +PrivateNetworkID - Region fr-par Upgrade Policy: @@ -64,5 +65,6 @@ KEY VALUE EFFECT "labels": {}, "taints": [], "startup_taints": [], + "private_network_id": "", "region": "fr-par" } diff --git a/internal/namespaces/k8s/v1/testdata/test-pool-set-label-set-empty.golden b/internal/namespaces/k8s/v1/testdata/test-pool-set-label-set-empty.golden index 63ef413df5..8b2e48a635 100644 --- a/internal/namespaces/k8s/v1/testdata/test-pool-set-label-set-empty.golden +++ b/internal/namespaces/k8s/v1/testdata/test-pool-set-label-set-empty.golden @@ -19,6 +19,7 @@ RootVolumeType l_ssd RootVolumeSize 40 GB PublicIPDisabled false SecurityGroupID 8bcdc1ce-cda4-4e8f-859f-2aa0aa86e957 +PrivateNetworkID - Region fr-par Upgrade Policy: @@ -66,5 +67,6 @@ KEY VALUE EFFECT }, "taints": [], "startup_taints": [], + "private_network_id": "", "region": "fr-par" } diff --git a/internal/namespaces/k8s/v1/testdata/test-pool-set-startup-taint-set-empty.golden b/internal/namespaces/k8s/v1/testdata/test-pool-set-startup-taint-set-empty.golden index 2413b65ba1..f62b837f69 100644 --- a/internal/namespaces/k8s/v1/testdata/test-pool-set-startup-taint-set-empty.golden +++ b/internal/namespaces/k8s/v1/testdata/test-pool-set-startup-taint-set-empty.golden @@ -19,6 +19,7 @@ RootVolumeType l_ssd RootVolumeSize 40 GB PublicIPDisabled false SecurityGroupID 8bcdc1ce-cda4-4e8f-859f-2aa0aa86e957 +PrivateNetworkID - Region fr-par Upgrade Policy: @@ -71,5 +72,6 @@ foo bar NoSchedule "effect": "NoSchedule" } ], + "private_network_id": "", "region": "fr-par" } diff --git a/internal/namespaces/k8s/v1/testdata/test-pool-set-taint-set-empty.golden b/internal/namespaces/k8s/v1/testdata/test-pool-set-taint-set-empty.golden index 2bd9327738..5559b0add5 100644 --- a/internal/namespaces/k8s/v1/testdata/test-pool-set-taint-set-empty.golden +++ b/internal/namespaces/k8s/v1/testdata/test-pool-set-taint-set-empty.golden @@ -19,6 +19,7 @@ RootVolumeType l_ssd RootVolumeSize 40 GB PublicIPDisabled false SecurityGroupID 8bcdc1ce-cda4-4e8f-859f-2aa0aa86e957 +PrivateNetworkID - Region fr-par Upgrade Policy: @@ -71,5 +72,6 @@ KEY VALUE EFFECT } ], "startup_taints": [], + "private_network_id": "", "region": "fr-par" }