def METHOD_NAME(self, request, params, project_id, cluster_id):
    """查询configmaps"""
    # 共享集群禁用该接口
    if get_cluster_type(cluster_id) == ClusterType.SHARED:
        return 0, []
    search_fields = copy.deepcopy(DEFAULT_SEARCH_FIELDS)
    search_fields.append("data.data")
    params.update({"field": ",".join(search_fields)})
    client = k8s.K8SClient(request.user.token.access_token, project_id, cluster_id, env=None)
    resp = client.get_configmap(params)
    if resp.get("code") != ErrorCode.NoError:
        logger.error(u"bcs_api error: %s" % resp.get("message", ""))
        return resp.get("code", ErrorCode.UnknownError), resp.get("message", _("请求出现异常!"))
    data = resp.get("data") or []
    return 0, data