diff --git a/scaleway-async/scaleway_async/k8s/v1/marshalling.py b/scaleway-async/scaleway_async/k8s/v1/marshalling.py index 6d60fab2..bc2ad321 100644 --- a/scaleway-async/scaleway_async/k8s/v1/marshalling.py +++ b/scaleway-async/scaleway_async/k8s/v1/marshalling.py @@ -429,14 +429,6 @@ def unmarshal_Cluster(data: Any) -> Cluster: if field is not None: args["feature_gates"] = field - field = data.get("admission_plugins", None) - if field is not None: - args["admission_plugins"] = field - - field = data.get("apiserver_cert_sans", None) - if field is not None: - args["apiserver_cert_sans"] = field - field = data.get("created_at", None) if field is not None: args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field @@ -461,6 +453,14 @@ def unmarshal_Cluster(data: Any) -> Cluster: else: args["auto_upgrade"] = None + field = data.get("admission_plugins", None) + if field is not None: + args["admission_plugins"] = field + + field = data.get("apiserver_cert_sans", None) + if field is not None: + args["apiserver_cert_sans"] = field + field = data.get("open_id_connect_config", None) if field is not None: args["open_id_connect_config"] = unmarshal_ClusterOpenIDConnectConfig(field) @@ -487,6 +487,12 @@ def unmarshal_Cluster(data: Any) -> Cluster: else: args["routed_ip_enabled"] = None + field = data.get("sbs_csi_enabled", None) + if field is not None: + args["sbs_csi_enabled"] = field + else: + args["sbs_csi_enabled"] = None + return Cluster(**args) @@ -714,6 +720,10 @@ def unmarshal_ClusterType(data: Any) -> ClusterType: if field is not None: args["audit_logs_supported"] = field + field = data.get("max_etcd_size", None) + if field is not None: + args["max_etcd_size"] = field + field = data.get("commitment_delay", None) if field is not None: args["commitment_delay"] = field diff --git a/scaleway-async/scaleway_async/k8s/v1/types.py b/scaleway-async/scaleway_async/k8s/v1/types.py index 90bc1f08..05bb8487 100644 --- a/scaleway-async/scaleway_async/k8s/v1/types.py +++ b/scaleway-async/scaleway_async/k8s/v1/types.py @@ -686,6 +686,11 @@ class ClusterType: True if the offer allows activation of the audit log functionality. Please note that audit logs are sent to Cockpit. """ + max_etcd_size: int + """ + Maximum amount of data that can be stored in etcd for the offer. + """ + commitment_delay: Optional[str] """ Time period during which you can no longer switch to a lower offer. @@ -812,16 +817,6 @@ class Cluster: List of enabled feature gates. """ - admission_plugins: List[str] - """ - List of enabled admission plugins. - """ - - apiserver_cert_sans: List[str] - """ - Additional Subject Alternative Names for the Kubernetes API server certificate. - """ - created_at: Optional[datetime] """ Date on which the cluster was created. @@ -842,6 +837,16 @@ class Cluster: Auto upgrade configuration of the cluster. """ + admission_plugins: List[str] + """ + List of enabled admission plugins. + """ + + apiserver_cert_sans: List[str] + """ + Additional Subject Alternative Names for the Kubernetes API server certificate. + """ + open_id_connect_config: Optional[ClusterOpenIDConnectConfig] """ This configuration enables to update the OpenID Connect configuration of the Kubernetes API server. @@ -862,6 +867,11 @@ class Cluster: Defines whether routed IPs are enabled for nodes of this cluster. """ + sbs_csi_enabled: Optional[bool] + """ + Defines whether the SBS-enabled CSI starting from v0.3 is installed on the cluster. + """ + @dataclass class Node: diff --git a/scaleway/scaleway/k8s/v1/marshalling.py b/scaleway/scaleway/k8s/v1/marshalling.py index 6d60fab2..bc2ad321 100644 --- a/scaleway/scaleway/k8s/v1/marshalling.py +++ b/scaleway/scaleway/k8s/v1/marshalling.py @@ -429,14 +429,6 @@ def unmarshal_Cluster(data: Any) -> Cluster: if field is not None: args["feature_gates"] = field - field = data.get("admission_plugins", None) - if field is not None: - args["admission_plugins"] = field - - field = data.get("apiserver_cert_sans", None) - if field is not None: - args["apiserver_cert_sans"] = field - field = data.get("created_at", None) if field is not None: args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field @@ -461,6 +453,14 @@ def unmarshal_Cluster(data: Any) -> Cluster: else: args["auto_upgrade"] = None + field = data.get("admission_plugins", None) + if field is not None: + args["admission_plugins"] = field + + field = data.get("apiserver_cert_sans", None) + if field is not None: + args["apiserver_cert_sans"] = field + field = data.get("open_id_connect_config", None) if field is not None: args["open_id_connect_config"] = unmarshal_ClusterOpenIDConnectConfig(field) @@ -487,6 +487,12 @@ def unmarshal_Cluster(data: Any) -> Cluster: else: args["routed_ip_enabled"] = None + field = data.get("sbs_csi_enabled", None) + if field is not None: + args["sbs_csi_enabled"] = field + else: + args["sbs_csi_enabled"] = None + return Cluster(**args) @@ -714,6 +720,10 @@ def unmarshal_ClusterType(data: Any) -> ClusterType: if field is not None: args["audit_logs_supported"] = field + field = data.get("max_etcd_size", None) + if field is not None: + args["max_etcd_size"] = field + field = data.get("commitment_delay", None) if field is not None: args["commitment_delay"] = field diff --git a/scaleway/scaleway/k8s/v1/types.py b/scaleway/scaleway/k8s/v1/types.py index 90bc1f08..05bb8487 100644 --- a/scaleway/scaleway/k8s/v1/types.py +++ b/scaleway/scaleway/k8s/v1/types.py @@ -686,6 +686,11 @@ class ClusterType: True if the offer allows activation of the audit log functionality. Please note that audit logs are sent to Cockpit. """ + max_etcd_size: int + """ + Maximum amount of data that can be stored in etcd for the offer. + """ + commitment_delay: Optional[str] """ Time period during which you can no longer switch to a lower offer. @@ -812,16 +817,6 @@ class Cluster: List of enabled feature gates. """ - admission_plugins: List[str] - """ - List of enabled admission plugins. - """ - - apiserver_cert_sans: List[str] - """ - Additional Subject Alternative Names for the Kubernetes API server certificate. - """ - created_at: Optional[datetime] """ Date on which the cluster was created. @@ -842,6 +837,16 @@ class Cluster: Auto upgrade configuration of the cluster. """ + admission_plugins: List[str] + """ + List of enabled admission plugins. + """ + + apiserver_cert_sans: List[str] + """ + Additional Subject Alternative Names for the Kubernetes API server certificate. + """ + open_id_connect_config: Optional[ClusterOpenIDConnectConfig] """ This configuration enables to update the OpenID Connect configuration of the Kubernetes API server. @@ -862,6 +867,11 @@ class Cluster: Defines whether routed IPs are enabled for nodes of this cluster. """ + sbs_csi_enabled: Optional[bool] + """ + Defines whether the SBS-enabled CSI starting from v0.3 is installed on the cluster. + """ + @dataclass class Node: