def get_cluster_key(obj):
    """Get the cluster key for a given k8s object"""
    try:
        namespace = obj['metadata']['namespace']
        name = obj['metadata']['labels']['gateway.dask.org/cluster']
        return f'{namespace}.{name}'
    except KeyError:
        return None
