Skip to content

Commit 1fd3001

Browse files
feat(k8s): add temporary feature flag for VPCv3 (#667)
Co-authored-by: Laure-di <62625835+Laure-di@users.noreply.github.com>
1 parent 0631fde commit 1fd3001

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

scaleway-async/scaleway_async/k8s/v1/marshalling.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,12 @@ def unmarshal_Cluster(data: Any) -> Cluster:
493493
else:
494494
args["sbs_csi_enabled"] = None
495495

496+
field = data.get("full_vpc_integraton_enabled", None)
497+
if field is not None:
498+
args["full_vpc_integraton_enabled"] = field
499+
else:
500+
args["full_vpc_integraton_enabled"] = None
501+
496502
return Cluster(**args)
497503

498504

scaleway-async/scaleway_async/k8s/v1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,11 @@ class Cluster:
872872
Defines whether the SBS-enabled CSI starting from v0.3 is installed on the cluster.
873873
"""
874874

875+
full_vpc_integraton_enabled: Optional[bool]
876+
"""
877+
Defines whether VPC is fully integrated on the cluster.
878+
"""
879+
875880

876881
@dataclass
877882
class Node:

scaleway/scaleway/k8s/v1/marshalling.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,12 @@ def unmarshal_Cluster(data: Any) -> Cluster:
493493
else:
494494
args["sbs_csi_enabled"] = None
495495

496+
field = data.get("full_vpc_integraton_enabled", None)
497+
if field is not None:
498+
args["full_vpc_integraton_enabled"] = field
499+
else:
500+
args["full_vpc_integraton_enabled"] = None
501+
496502
return Cluster(**args)
497503

498504

scaleway/scaleway/k8s/v1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,11 @@ class Cluster:
872872
Defines whether the SBS-enabled CSI starting from v0.3 is installed on the cluster.
873873
"""
874874

875+
full_vpc_integraton_enabled: Optional[bool]
876+
"""
877+
Defines whether VPC is fully integrated on the cluster.
878+
"""
879+
875880

876881
@dataclass
877882
class Node:

0 commit comments

Comments
 (0)