Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clusterpedia 后期 会不会添加一些 公有的适合复杂查询的http接口? #258

Closed
huoyinghao opened this issue Jul 1, 2022 · 3 comments
Labels
kind/feature New feature question Further information is requested

Comments

@huoyinghao
Copy link
Contributor

What would you like to be added?

例如

通过一个post接口 去查询 某一个集群或者多个集群的 workload(包括deploy,statefulset,job 等资源)

把这些类型以一个下面的形式返回

{
    "message":"",
    "data":{
        "deploy":[],
        "statefulset":[],
        "job":[],
    }
}    

再进一步 可以尝试加入labelselect

Why is this needed?

在以下场景可能会用得到

  • 页面 需要展示拥有某一个标签的所有资源?
  • 页面 需要展示 某一个集群,某一个命名空间下的一个实例 (例如某一个服务 包含deploy,statefulset,replicate,pod ) ,的所有资源
  • 其他的一些奇葩需求
@huoyinghao huoyinghao added the kind/feature New feature label Jul 1, 2022
@Iceber
Copy link
Member

Iceber commented Jul 1, 2022

collection resources 可以支持几乎所有的查询条件 https://clusterpedia.io/docs/usage/search/
如果有一些特殊查询的话可以使用默认存储层提供的 raw sql.

@Iceber Iceber added the question Further information is requested label Jul 1, 2022
@calvin0327
Copy link

clusterpedia-io/client-go#43

@huoyinghao 可以使用 client-go 去查询

@Iceber
Copy link
Member

Iceber commented Jul 14, 2022

Any collection resource can meet more flexible resource combinations, and in the future there will also be the ability to customize the collection resource

@Iceber Iceber closed this as completed Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants