'Convert namespace to a cluster'

def _to_cluster(self, data):

    metadata = data['metadata']
    status = data['status']
    return ContainerCluster(id=metadata['name'], name=metadata['name'], driver=self.connection.driver, extra={'phase': status['phase']})
