Skip to content

Commit b5082ec

Browse files
feat(k8s): add support iam_nodes_group_id (#917)
Co-authored-by: Laure-di <[email protected]>
1 parent 4d2974d commit b5082ec

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
@@ -468,6 +468,10 @@ def unmarshal_Cluster(data: Any) -> Cluster:
468468
if field is not None:
469469
args["apiserver_cert_sans"] = field
470470

471+
field = data.get("iam_nodes_group_id", None)
472+
if field is not None:
473+
args["iam_nodes_group_id"] = field
474+
471475
field = data.get("open_id_connect_config", None)
472476
if field is not None:
473477
args["open_id_connect_config"] = unmarshal_ClusterOpenIDConnectConfig(field)

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,11 @@ class Cluster:
892892
Additional Subject Alternative Names for the Kubernetes API server certificate.
893893
"""
894894

895+
iam_nodes_group_id: str
896+
"""
897+
IAM group that nodes are members of (this field might be empty during early stage of cluster creation).
898+
"""
899+
895900
open_id_connect_config: Optional[ClusterOpenIDConnectConfig]
896901
"""
897902
This configuration enables to update the OpenID Connect configuration of the Kubernetes API server.

scaleway/scaleway/k8s/v1/marshalling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,10 @@ def unmarshal_Cluster(data: Any) -> Cluster:
468468
if field is not None:
469469
args["apiserver_cert_sans"] = field
470470

471+
field = data.get("iam_nodes_group_id", None)
472+
if field is not None:
473+
args["iam_nodes_group_id"] = field
474+
471475
field = data.get("open_id_connect_config", None)
472476
if field is not None:
473477
args["open_id_connect_config"] = unmarshal_ClusterOpenIDConnectConfig(field)

scaleway/scaleway/k8s/v1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,11 @@ class Cluster:
892892
Additional Subject Alternative Names for the Kubernetes API server certificate.
893893
"""
894894

895+
iam_nodes_group_id: str
896+
"""
897+
IAM group that nodes are members of (this field might be empty during early stage of cluster creation).
898+
"""
899+
895900
open_id_connect_config: Optional[ClusterOpenIDConnectConfig]
896901
"""
897902
This configuration enables to update the OpenID Connect configuration of the Kubernetes API server.

0 commit comments

Comments
 (0)