def get_name(spec):
    """Retrieves the name from the provided Kubernetes object

    Args:
        spec - Spec for a properly constructed kubernetes object

    Returns:
        The name of the Kubernetes object as a string
    """
    return spec["metadata"]["name"]