Skip to content

Commit 7312298

Browse files
feat(kapsule): expose public_ip_disabled field (#3400)
Co-authored-by: Rémy Léone <[email protected]>
1 parent ad5dbb1 commit 7312298

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
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
@@ -36,6 +36,7 @@ ARGS:
3636
[pools.{index}.zone] Zone in which the pool's nodes will be spawned
3737
[pools.{index}.root-volume-type] Defines the system volume disk type. Two different types of volume (`volume_type`) are provided: `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. `b_ssd` is a remote block storage which means your system is stored on a centralized and resilient cluster (default_volume_type | l_ssd | b_ssd)
3838
[pools.{index}.root-volume-size] System volume disk size
39+
[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
3940
[autoscaler-config.scale-down-disabled] Disable the cluster autoscaler
4041
[autoscaler-config.scale-down-delay-after-add] How long after scale up that scale down evaluation resumes
4142
[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
@@ -33,6 +33,7 @@ ARGS:
3333
[zone] Zone in which the pool's nodes will be spawned
3434
[root-volume-type] Defines the system volume disk type. Two different types of volume (`volume_type`) are provided: `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. `b_ssd` is a remote block storage which means your system is stored on a centralized and resilient cluster (default_volume_type | l_ssd | b_ssd)
3535
[root-volume-size] System volume disk size
36+
[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
3637
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
3738

3839
FLAGS:

docs/commands/k8s.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ scw k8s cluster create [arg=value ...]
8888
| pools.{index}.zone | | Zone in which the pool's nodes will be spawned |
8989
| pools.{index}.root-volume-type | One of: `default_volume_type`, `l_ssd`, `b_ssd` | Defines the system volume disk type. Two different types of volume (`volume_type`) are provided: `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. `b_ssd` is a remote block storage which means your system is stored on a centralized and resilient cluster |
9090
| pools.{index}.root-volume-size | | System volume disk size |
91+
| 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 |
9192
| autoscaler-config.scale-down-disabled | | Disable the cluster autoscaler |
9293
| autoscaler-config.scale-down-delay-after-add | | How long after scale up that scale down evaluation resumes |
9394
| autoscaler-config.estimator | One of: `unknown_estimator`, `binpacking` | Type of resource estimator to be used in scale up |
@@ -904,6 +905,7 @@ scw k8s pool create [arg=value ...]
904905
| zone | | Zone in which the pool's nodes will be spawned |
905906
| root-volume-type | One of: `default_volume_type`, `l_ssd`, `b_ssd` | Defines the system volume disk type. Two different types of volume (`volume_type`) are provided: `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. `b_ssd` is a remote block storage which means your system is stored on a centralized and resilient cluster |
906907
| root-volume-size | | System volume disk size |
908+
| 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 |
907909
| 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 |
908910

909911

internal/namespaces/k8s/v1/k8s_cli.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,13 @@ func k8sClusterCreate() *core.Command {
437437
Deprecated: false,
438438
Positional: false,
439439
},
440+
{
441+
Name: "pools.{index}.public-ip-disabled",
442+
Short: `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`,
443+
Required: false,
444+
Deprecated: false,
445+
Positional: false,
446+
},
440447
{
441448
Name: "autoscaler-config.scale-down-disabled",
442449
Short: `Disable the cluster autoscaler`,
@@ -1497,6 +1504,13 @@ func k8sPoolCreate() *core.Command {
14971504
Deprecated: false,
14981505
Positional: false,
14991506
},
1507+
{
1508+
Name: "public-ip-disabled",
1509+
Short: `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`,
1510+
Required: false,
1511+
Deprecated: false,
1512+
Positional: false,
1513+
},
15001514
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
15011515
},
15021516
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {

0 commit comments

Comments
 (0)