def get_api(kind):
    """Determine the apiVersion for different kinds of resources

    Args:
        kind (string): The name of the resource

    Returns:
        string: the apiVersion for the matching resource

    Raises:
        ValueError: If apiVersion cannot be determined from Kind
    """
    # supported workloads & their api versions
    api_versions = {
        "DaemonSet": "apps/v1",
        "Deployment": "apps/v1",
        "Job": "batch/v1",
        "Pod": "v1",
        "ReplicaSet": "apps/v1",
        "StatefulSet": "apps/v1",
        "Ingress": "networking.k8s.io/v1beta1",
        "Service": "v1",
        "PersistentVolume": "v1",
        "PersistentVolumeClaim": "v1",
        "Volume": "v1",
        "Namespace": "v1",
        "ConfigMap": "v1",
    }

    for resource, api in api_versions.items():
        if kind == resource:
            return api

    raise ValueError(f"Could not determine apiVersion from {kind}")