Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scaleway-async/scaleway_async/k8s/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,7 @@ async def create_pool(
container_runtime: Runtime,
autohealing: bool,
root_volume_type: PoolVolumeType,
public_ip_disabled: bool,
region: Optional[Region] = None,
name: Optional[str] = None,
placement_group_id: Optional[str] = None,
Expand Down Expand Up @@ -889,6 +890,7 @@ async def create_pool(
:param zone: Zone in which the pool's nodes will be spawned.
:param 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.
:param root_volume_size: System volume disk size.
:param 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.
:return: :class:`Pool <Pool>`

Usage:
Expand All @@ -902,6 +904,7 @@ async def create_pool(
container_runtime=unknown_runtime,
autohealing=True,
root_volume_type=default_volume_type,
public_ip_disabled=True,
)
"""

Expand All @@ -922,6 +925,7 @@ async def create_pool(
container_runtime=container_runtime,
autohealing=autohealing,
root_volume_type=root_volume_type,
public_ip_disabled=public_ip_disabled,
region=region,
name=name or random_name(prefix="pool"),
placement_group_id=placement_group_id,
Expand Down
9 changes: 9 additions & 0 deletions scaleway-async/scaleway_async/k8s/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,9 @@ def unmarshal_Pool(data: Any) -> Pool:
field = data.get("placement_group_id", None)
args["placement_group_id"] = field

field = data.get("public_ip_disabled", None)
args["public_ip_disabled"] = field

field = data.get("region", None)
args["region"] = field

Expand Down Expand Up @@ -794,6 +797,9 @@ def marshal_CreateClusterRequestPoolConfig(
if request.placement_group_id is not None:
output["placement_group_id"] = request.placement_group_id

if request.public_ip_disabled is not None:
output["public_ip_disabled"] = request.public_ip_disabled

if request.root_volume_size is not None:
output["root_volume_size"] = request.root_volume_size

Expand Down Expand Up @@ -1057,6 +1063,9 @@ def marshal_CreatePoolRequest(
if request.placement_group_id is not None:
output["placement_group_id"] = request.placement_group_id

if request.public_ip_disabled is not None:
output["public_ip_disabled"] = request.public_ip_disabled

if request.root_volume_size is not None:
output["root_volume_size"] = request.root_volume_size

Expand Down
15 changes: 15 additions & 0 deletions scaleway-async/scaleway_async/k8s/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,11 @@ class CreateClusterRequestPoolConfig:
System volume disk size.
"""

public_ip_disabled: bool
"""
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.
"""


@dataclass
class CreateClusterRequestPoolConfigUpgradePolicy:
Expand Down Expand Up @@ -1051,6 +1056,11 @@ class Pool:
System volume disk size.
"""

public_ip_disabled: bool
"""
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.
"""

region: Region
"""
Cluster region of the pool.
Expand Down Expand Up @@ -1722,6 +1732,11 @@ class CreatePoolRequest:
System volume disk size.
"""

public_ip_disabled: bool
"""
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.
"""


@dataclass
class GetPoolRequest:
Expand Down
4 changes: 4 additions & 0 deletions scaleway/scaleway/k8s/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,7 @@ def create_pool(
container_runtime: Runtime,
autohealing: bool,
root_volume_type: PoolVolumeType,
public_ip_disabled: bool,
region: Optional[Region] = None,
name: Optional[str] = None,
placement_group_id: Optional[str] = None,
Expand Down Expand Up @@ -889,6 +890,7 @@ def create_pool(
:param zone: Zone in which the pool's nodes will be spawned.
:param 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.
:param root_volume_size: System volume disk size.
:param 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.
:return: :class:`Pool <Pool>`

Usage:
Expand All @@ -902,6 +904,7 @@ def create_pool(
container_runtime=unknown_runtime,
autohealing=True,
root_volume_type=default_volume_type,
public_ip_disabled=True,
)
"""

Expand All @@ -922,6 +925,7 @@ def create_pool(
container_runtime=container_runtime,
autohealing=autohealing,
root_volume_type=root_volume_type,
public_ip_disabled=public_ip_disabled,
region=region,
name=name or random_name(prefix="pool"),
placement_group_id=placement_group_id,
Expand Down
9 changes: 9 additions & 0 deletions scaleway/scaleway/k8s/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,9 @@ def unmarshal_Pool(data: Any) -> Pool:
field = data.get("placement_group_id", None)
args["placement_group_id"] = field

field = data.get("public_ip_disabled", None)
args["public_ip_disabled"] = field

field = data.get("region", None)
args["region"] = field

Expand Down Expand Up @@ -794,6 +797,9 @@ def marshal_CreateClusterRequestPoolConfig(
if request.placement_group_id is not None:
output["placement_group_id"] = request.placement_group_id

if request.public_ip_disabled is not None:
output["public_ip_disabled"] = request.public_ip_disabled

if request.root_volume_size is not None:
output["root_volume_size"] = request.root_volume_size

Expand Down Expand Up @@ -1057,6 +1063,9 @@ def marshal_CreatePoolRequest(
if request.placement_group_id is not None:
output["placement_group_id"] = request.placement_group_id

if request.public_ip_disabled is not None:
output["public_ip_disabled"] = request.public_ip_disabled

if request.root_volume_size is not None:
output["root_volume_size"] = request.root_volume_size

Expand Down
15 changes: 15 additions & 0 deletions scaleway/scaleway/k8s/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,11 @@ class CreateClusterRequestPoolConfig:
System volume disk size.
"""

public_ip_disabled: bool
"""
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.
"""


@dataclass
class CreateClusterRequestPoolConfigUpgradePolicy:
Expand Down Expand Up @@ -1051,6 +1056,11 @@ class Pool:
System volume disk size.
"""

public_ip_disabled: bool
"""
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.
"""

region: Region
"""
Cluster region of the pool.
Expand Down Expand Up @@ -1722,6 +1732,11 @@ class CreatePoolRequest:
System volume disk size.
"""

public_ip_disabled: bool
"""
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.
"""


@dataclass
class GetPoolRequest:
Expand Down