Add os extra assignment
@@ -289,6 +289,10 @@ class KubernetesContainerDriver(KubernetesDriverMixin, ContainerDriver):
extra=extra_size,
)
extra = {"memory": memory, "cpu": cpu}
+ labels = data["metadata"]["labels"]
+ os = labels.get("beta.kubernetes.io/os") or labels.get("kubernetes.io/os")
+ if os:
+ extra["os"] = os
# TODO: Find state
state = NodeState.UNKNOWN
public_ips, private_ips = [], []
