Skip to content

Commit 888c0c3

Browse files
authored
Merge branch 'master' into instance_image_list_display_sbs_volume_sizes
2 parents 68d5977 + 772b316 commit 888c0c3

File tree

6 files changed

+21
-3
lines changed

6 files changed

+21
-3
lines changed

cmd/scw/testdata/test-all-usage-k8s-cluster-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ARGS:
3737
[pools.{index}.root-volume-type] Defines the system volume disk type. Several types of volume (`volume_type`) are provided: (default_volume_type | l_ssd | b_ssd | sbs_5k | sbs_15k)
3838
[pools.{index}.root-volume-size] System volume disk size
3939
[pools.{index}.public-ip-disabled] Defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway
40+
[pools.{index}.security-group-id] Security group ID in which all the nodes of the pool will be created. If unset, the pool will use default Kapsule security group in current zone
4041
[autoscaler-config.scale-down-disabled] Disable the cluster autoscaler
4142
[autoscaler-config.scale-down-delay-after-add] How long after scale up the scale down evaluation resumes
4243
[autoscaler-config.estimator] Type of resource estimator to be used in scale up (unknown_estimator | binpacking)

cmd/scw/testdata/test-all-usage-k8s-pool-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ ARGS:
3434
[root-volume-type] Defines the system volume disk type. Several types of volume (`volume_type`) are provided: (default_volume_type | l_ssd | b_ssd | sbs_5k | sbs_15k)
3535
[root-volume-size] System volume disk size
3636
[public-ip-disabled] Defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway
37+
[security-group-id] Security group ID in which all the nodes of the pool will be created. If unset, the pool will use default Kapsule security group in current zone
3738
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
3839

3940
FLAGS:

docs/commands/k8s.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ scw k8s cluster create [arg=value ...]
182182
| pools.{index}.root-volume-type | One of: `default_volume_type`, `l_ssd`, `b_ssd`, `sbs_5k`, `sbs_15k` | Defines the system volume disk type. Several types of volume (`volume_type`) are provided: |
183183
| pools.{index}.root-volume-size | | System volume disk size |
184184
| pools.{index}.public-ip-disabled | | Defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway |
185+
| pools.{index}.security-group-id | | Security group ID in which all the nodes of the pool will be created. If unset, the pool will use default Kapsule security group in current zone |
185186
| autoscaler-config.scale-down-disabled | | Disable the cluster autoscaler |
186187
| autoscaler-config.scale-down-delay-after-add | | How long after scale up the scale down evaluation resumes |
187188
| autoscaler-config.estimator | One of: `unknown_estimator`, `binpacking` | Type of resource estimator to be used in scale up |
@@ -987,6 +988,7 @@ scw k8s pool create [arg=value ...]
987988
| root-volume-type | One of: `default_volume_type`, `l_ssd`, `b_ssd`, `sbs_5k`, `sbs_15k` | Defines the system volume disk type. Several types of volume (`volume_type`) are provided: |
988989
| root-volume-size | | System volume disk size |
989990
| public-ip-disabled | | Defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway |
991+
| security-group-id | | Security group ID in which all the nodes of the pool will be created. If unset, the pool will use default Kapsule security group in current zone |
990992
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
991993

992994

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.20250602130818-6c0782903c76
26+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250602160040-3f95edfa9580
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
@@ -466,8 +466,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
466466
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
467467
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
468468
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
469-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250602130818-6c0782903c76 h1:z5LBvzG8eD6+iBuIH+ZFZX5K9BxQ2Mwk79dpmvXMNws=
470-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250602130818-6c0782903c76/go.mod h1:qiGzapFyNPFwBBLJ+hTFykKSnU95n1zL64+o1ubmwf0=
469+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250602160040-3f95edfa9580 h1:EUotMDGXojmeZ5UNu6Hq7QfnibVKHLGBrWiSobZ1OVY=
470+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250602160040-3f95edfa9580/go.mod h1:qiGzapFyNPFwBBLJ+hTFykKSnU95n1zL64+o1ubmwf0=
471471
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
472472
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
473473
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/k8s/v1/k8s_cli.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,13 @@ func k8sClusterCreate() *core.Command {
479479
Deprecated: false,
480480
Positional: false,
481481
},
482+
{
483+
Name: "pools.{index}.security-group-id",
484+
Short: `Security group ID in which all the nodes of the pool will be created. If unset, the pool will use default Kapsule security group in current zone`,
485+
Required: false,
486+
Deprecated: false,
487+
Positional: false,
488+
},
482489
{
483490
Name: "autoscaler-config.scale-down-disabled",
484491
Short: `Disable the cluster autoscaler`,
@@ -1800,6 +1807,13 @@ func k8sPoolCreate() *core.Command {
18001807
Deprecated: false,
18011808
Positional: false,
18021809
},
1810+
{
1811+
Name: "security-group-id",
1812+
Short: `Security group ID in which all the nodes of the pool will be created. If unset, the pool will use default Kapsule security group in current zone`,
1813+
Required: false,
1814+
Deprecated: false,
1815+
Positional: false,
1816+
},
18031817
core.RegionArgSpec(
18041818
scw.RegionFrPar,
18051819
scw.RegionNlAms,

0 commit comments

Comments
 (0)