Get cluster from kubeconfig.

def get_cluster(self, name):
        """Get cluster from kubeconfig."""
        clusters = self.data['clusters']
        for cluster in clusters:
            if cluster['name'] == name:
                return cluster
        raise KubeConfError("Cluster name not found.")