Skip to content

feat(k8s): add routed_ip_enabled field to Cluster #497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2024
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/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,10 @@ def unmarshal_Cluster(data: Any) -> Cluster:
parser.isoparse(field) if isinstance(field, str) else field
)

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

return Cluster(**args)


Expand Down
5 changes: 5 additions & 0 deletions scaleway-async/scaleway_async/k8s/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,11 @@ class Cluster:
Date on which it will be possible to switch to a smaller offer.
"""

routed_ip_enabled: Optional[bool]
"""
Defines whether routed IPs are enabled for nodes of this cluster.
"""


@dataclass
class Node:
Expand Down
4 changes: 4 additions & 0 deletions scaleway/scaleway/k8s/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,10 @@ def unmarshal_Cluster(data: Any) -> Cluster:
parser.isoparse(field) if isinstance(field, str) else field
)

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

return Cluster(**args)


Expand Down
5 changes: 5 additions & 0 deletions scaleway/scaleway/k8s/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,11 @@ class Cluster:
Date on which it will be possible to switch to a smaller offer.
"""

routed_ip_enabled: Optional[bool]
"""
Defines whether routed IPs are enabled for nodes of this cluster.
"""


@dataclass
class Node:
Expand Down