Skip to content

Commit 6f62a96

Browse files
authored
feat(k8s): add template_args field to NodeMetadata (#1244)
1 parent 5596bb9 commit 6f62a96

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-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
@@ -1343,6 +1343,12 @@ def unmarshal_NodeMetadata(data: Any) -> NodeMetadata:
13431343
else:
13441344
args["resolvconf_path"] = None
13451345

1346+
field = data.get("template_args", None)
1347+
if field is not None:
1348+
args["template_args"] = field
1349+
else:
1350+
args["template_args"] = None
1351+
13461352
field = data.get("has_gpu", None)
13471353
if field is not None:
13481354
args["has_gpu"] = field

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1879,6 +1879,7 @@ class NodeMetadata:
18791879
node_taints: list[NodeMetadataCoreV1Taint]
18801880
provider_id: str
18811881
resolvconf_path: str
1882+
template_args: dict[str, str]
18821883
has_gpu: bool
18831884
external_ip: str
18841885
repo_uri: str

scaleway/scaleway/k8s/v1/marshalling.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,6 +1343,12 @@ def unmarshal_NodeMetadata(data: Any) -> NodeMetadata:
13431343
else:
13441344
args["resolvconf_path"] = None
13451345

1346+
field = data.get("template_args", None)
1347+
if field is not None:
1348+
args["template_args"] = field
1349+
else:
1350+
args["template_args"] = None
1351+
13461352
field = data.get("has_gpu", None)
13471353
if field is not None:
13481354
args["has_gpu"] = field

scaleway/scaleway/k8s/v1/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1879,6 +1879,7 @@ class NodeMetadata:
18791879
node_taints: list[NodeMetadataCoreV1Taint]
18801880
provider_id: str
18811881
resolvconf_path: str
1882+
template_args: dict[str, str]
18821883
has_gpu: bool
18831884
external_ip: str
18841885
repo_uri: str

0 commit comments

Comments
 (0)