from typing import Dict
from typing import Any
import platform


def get_metadata(kube_client) -> Dict[str, Any]:
    """Return basic dict with metadata about the host."""

    metadata = {
        "python": platform.python_implementation(),
        "python_version": platform.python_version(),
        "hostname_vm_host": platform.node(),
        "kernel_vm_host": platform.release(),
    }
    # assume we only have one node, since we are just on minikube
    node_info = kube_client.list_node().items[0].status.node_info.to_dict()
    metadata.update(node_info)

    return metadata