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