Skip to content

Commit

Permalink
feat(k8s): add routed_ip_enabled field to Cluster (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Apr 19, 2024
1 parent 80b3f57 commit da4950a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
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

0 comments on commit da4950a

Please sign in to comment.