Skip to content
Open
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
12 changes: 6 additions & 6 deletions scaleway-async/scaleway_async/k8s/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,18 +838,18 @@ def unmarshal_Pool(data: Any) -> Pool:
else:
args["startup_taints"] = []

field = data.get("private_network_id", None)
if field is not None:
args["private_network_id"] = field
else:
args["private_network_id"] = None

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

field = data.get("private_network_id", None)
if field is not None:
args["private_network_id"] = field
else:
args["private_network_id"] = None

return Pool(**args)


Expand Down
10 changes: 5 additions & 5 deletions scaleway-async/scaleway_async/k8s/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1078,11 +1078,6 @@ class Pool:
Kubernetes taints applied at node creation but not reconciled afterwards.
"""

private_network_id: str
"""
Private network where the nodes are attached. Should be member of the same VPC as the API Server.
"""

region: ScwRegion
"""
Cluster region of the pool.
Expand Down Expand Up @@ -1113,6 +1108,11 @@ class Pool:
System volume disk size.
"""

private_network_id: Optional[str] = None
"""
Private network where the nodes are attached. Should be member of the same VPC as the API Server.
"""


@dataclass
class NodeMetadataCoreV1Taint:
Expand Down
12 changes: 6 additions & 6 deletions scaleway/scaleway/k8s/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,18 +838,18 @@ def unmarshal_Pool(data: Any) -> Pool:
else:
args["startup_taints"] = []

field = data.get("private_network_id", None)
if field is not None:
args["private_network_id"] = field
else:
args["private_network_id"] = None

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

field = data.get("private_network_id", None)
if field is not None:
args["private_network_id"] = field
else:
args["private_network_id"] = None

return Pool(**args)


Expand Down
10 changes: 5 additions & 5 deletions scaleway/scaleway/k8s/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1078,11 +1078,6 @@ class Pool:
Kubernetes taints applied at node creation but not reconciled afterwards.
"""

private_network_id: str
"""
Private network where the nodes are attached. Should be member of the same VPC as the API Server.
"""

region: ScwRegion
"""
Cluster region of the pool.
Expand Down Expand Up @@ -1113,6 +1108,11 @@ class Pool:
System volume disk size.
"""

private_network_id: Optional[str] = None
"""
Private network where the nodes are attached. Should be member of the same VPC as the API Server.
"""


@dataclass
class NodeMetadataCoreV1Taint:
Expand Down
Loading