Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(k8s): add support iam_nodes_group_id #917

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -468,6 +468,10 @@ def unmarshal_Cluster(data: Any) -> Cluster:
if field is not None:
args["apiserver_cert_sans"] = field

field = data.get("iam_nodes_group_id", None)
if field is not None:
args["iam_nodes_group_id"] = field

field = data.get("open_id_connect_config", None)
if field is not None:
args["open_id_connect_config"] = unmarshal_ClusterOpenIDConnectConfig(field)
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 @@ -892,6 +892,11 @@ class Cluster:
Additional Subject Alternative Names for the Kubernetes API server certificate.
"""

iam_nodes_group_id: str
"""
IAM group that nodes are members of (this field might be empty during early stage of cluster creation).
"""

open_id_connect_config: Optional[ClusterOpenIDConnectConfig]
"""
This configuration enables to update the OpenID Connect configuration of the Kubernetes API server.
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 @@ -468,6 +468,10 @@ def unmarshal_Cluster(data: Any) -> Cluster:
if field is not None:
args["apiserver_cert_sans"] = field

field = data.get("iam_nodes_group_id", None)
if field is not None:
args["iam_nodes_group_id"] = field

field = data.get("open_id_connect_config", None)
if field is not None:
args["open_id_connect_config"] = unmarshal_ClusterOpenIDConnectConfig(field)
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 @@ -892,6 +892,11 @@ class Cluster:
Additional Subject Alternative Names for the Kubernetes API server certificate.
"""

iam_nodes_group_id: str
"""
IAM group that nodes are members of (this field might be empty during early stage of cluster creation).
"""

open_id_connect_config: Optional[ClusterOpenIDConnectConfig]
"""
This configuration enables to update the OpenID Connect configuration of the Kubernetes API server.
Expand Down