Add image_name assignment to _to_node()
@@ -293,8 +293,7 @@ class KubernetesContainerDriver(KubernetesDriverMixin, ContainerDriver):
cpu = data["status"].get("capacity", {}).get("cpu", "1")
if isinstance(cpu, str) and not cpu.isnumeric():
cpu = to_n_cpus_from_cpu_str(cpu)
- # TODO: Find image
- image_name = "undefined"
+ image_name = data["status"]["nodeInfo"]["osImage"]
image = NodeImage(image_name, image_name, driver)
size_name = f"{cpu} vCPUs, {memory} Ram"
size_id = hashlib.md5(size_name.encode("utf-8")).hexdigest()
