Skip to content

Commit e34a06d

Browse files
authored
feat(k8s): add max_etcd_size in ClusterType (#620)
1 parent e60f5d4 commit e34a06d

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,10 @@ def unmarshal_ClusterType(data: Any) -> ClusterType:
714714
if field is not None:
715715
args["audit_logs_supported"] = field
716716

717+
field = data.get("max_etcd_size", None)
718+
if field is not None:
719+
args["max_etcd_size"] = field
720+
717721
field = data.get("commitment_delay", None)
718722
if field is not None:
719723
args["commitment_delay"] = field

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,11 @@ class ClusterType:
686686
True if the offer allows activation of the audit log functionality. Please note that audit logs are sent to Cockpit.
687687
"""
688688

689+
max_etcd_size: int
690+
"""
691+
Maximum amount of data that can be stored in etcd for the offer.
692+
"""
693+
689694
commitment_delay: Optional[str]
690695
"""
691696
Time period during which you can no longer switch to a lower offer.

scaleway/scaleway/k8s/v1/marshalling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,10 @@ def unmarshal_ClusterType(data: Any) -> ClusterType:
714714
if field is not None:
715715
args["audit_logs_supported"] = field
716716

717+
field = data.get("max_etcd_size", None)
718+
if field is not None:
719+
args["max_etcd_size"] = field
720+
717721
field = data.get("commitment_delay", None)
718722
if field is not None:
719723
args["commitment_delay"] = field

scaleway/scaleway/k8s/v1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,11 @@ class ClusterType:
686686
True if the offer allows activation of the audit log functionality. Please note that audit logs are sent to Cockpit.
687687
"""
688688

689+
max_etcd_size: int
690+
"""
691+
Maximum amount of data that can be stored in etcd for the offer.
692+
"""
693+
689694
commitment_delay: Optional[str]
690695
"""
691696
Time period during which you can no longer switch to a lower offer.

0 commit comments

Comments
 (0)