跳转到文档内容
版本:v1.11

ClusterResourceBinding v1alpha2

apiVersion: work.karmada.io/v1alpha2

import "github.com/karmada-io/karmada/pkg/apis/work/v1alpha2"

ClusterResourceBinding

ClusterResourceBinding 表示某种 Kubernetes 资源与集群分发策略(ClusterPropagationPolicy)之间的绑定关系。


ClusterResourceBindingList

ClusterResourceBindingList 中包含 ClusterResourceBinding 列表。


  • apiVersion: work.karmada.io/v1alpha2

  • kind: ClusterResourceBindingList

  • metadata (ListMeta)

  • items ([][ClusterResourceBinding](../work-resources/cluster-resource-binding-v1alpha2#clusterresourcebinding)),必选

    items 表示 ClusterResourceBinding 列表。

操作


get:查询指定的 ClusterResourceBinding

HTTP 请求

GET /apis/work.karmada.io/v1alpha2/clusterresourcebindings/{name}

参数

  • name路径参数):string,必选

    ClusterResourceBinding 名称

  • pretty查询参数):string

    pretty

响应

200 (ClusterResourceBinding): OK

get:查询指定 ClusterResourceBinding 的状态

HTTP 请求

GET /apis/work.karmada.io/v1alpha2/clusterresourcebindings/{name}/status

参数

  • name路径参数):string,必选

    ClusterResourceBinding 名称

  • pretty查询参数):string

    pretty

响应

200 (ClusterResourceBinding): OK

list:查询全部 ClusterResourceBinding

HTTP 请求

GET /apis/work.karmada.io/v1alpha2/clusterresourcebindings

参数

响应

200 (ClusterResourceBindingList): OK

create:创建一个 ClusterResourceBinding

HTTP 请求

POST /apis/work.karmada.io/v1alpha2/clusterresourcebindings

参数

响应

200 (ClusterResourceBinding): OK

201 (ClusterResourceBinding): Created

202 (ClusterResourceBinding): Accepted

update:更新指定的 ClusterResourceBinding

HTTP 请求

PUT /apis/work.karmada.io/v1alpha2/clusterresourcebindings/{name}

参数

响应

200 (ClusterResourceBinding): OK

201 (ClusterResourceBinding): Created

update:更新指定 ClusterResourceBinding 的状态

HTTP 请求

PUT /apis/work.karmada.io/v1alpha2/clusterresourcebindings/{name}/status

参数

响应

200 (ClusterResourceBinding): OK

201 (ClusterResourceBinding): Created

patch:更新指定 ClusterResourceBinding 的部分信息

HTTP 请求

PATCH /apis/work.karmada.io/v1alpha2/clusterresourcebindings/{name}

参数

  • name路径参数):string,必选

    ClusterResourceBinding 名称

  • body: Patch,必选

  • dryRun查询参数):string

    dryRun

  • fieldManager查询参数):string

    fieldManager

  • fieldValidation查询参数):string

    fieldValidation

  • force查询参数):boolean

    force

  • pretty查询参数):string

    pretty

响应

200 (ClusterResourceBinding): OK

201 (ClusterResourceBinding): Created

patch:更新指定 ClusterResourceBinding 状态的部分信息

HTTP 请求

PATCH /apis/work.karmada.io/v1alpha2/clusterresourcebindings/{name}/status

参数

  • name路径参数):string,必选

    ClusterResourceBinding 名称

  • body: Patch,必选

  • dryRun查询参数):string

    dryRun

  • fieldManager查询参数):string

    fieldManager

  • fieldValidation查询参数):string

    fieldValidation

  • force查询参数):boolean

    force

  • pretty查询参数):string

    pretty

响应

200 (ClusterResourceBinding): OK

201 (ClusterResourceBinding): Created

delete:删除一个 ClusterResourceBinding

HTTP 请求

DELETE /apis/work.karmada.io/v1alpha2/clusterresourcebindings/{name}

参数

  • name路径参数):string,必选

    ClusterResourceBinding 名称

  • body: DeleteOptions

响应

200 (Status): OK

202 (Status): Accepted

deletecollection:删除 ClusterResourceBinding 的集合

HTTP 请求

DELETE /apis/work.karmada.io/v1alpha2/clusterresourcebindings

参数

响应

200 (Status): OK