- ClusterResourceBinding v1alpha2
- ClusterResourceBinding
- ClusterResourceBindingList
- 操作
get
:查询指定的 ClusterResourceBindingget
:查询指定 ClusterResourceBinding 的状态list
:查询全部 ClusterResourceBindingcreate
:创建一个 ClusterResourceBindingupdate
:更新指定的 ClusterResourceBindingupdate
:更新指定 ClusterResourceBinding 的状态patch
:更新指定 ClusterResourceBinding 的部分信息patch
:更新指定 ClusterResourceBinding 状态的部分信息delete
:删除一个 ClusterResourceBindingdeletecollection
:删除 ClusterResourceBinding 的集合
ClusterResourceBinding v1alpha2
apiVersion: work.karmada.io/v1alpha2
import "github.com/karmada-io/karmada/pkg/apis/work/v1alpha2"
ClusterResourceBinding
ClusterResourceBinding 表示某种 Kubernetes 资源与集群分发策略(ClusterPropagationPolicy)之间的绑定关系。
apiVersion: work.karmada.io/v1alpha2
kind: ClusterResourceBinding
metadata (ObjectMeta)
spec (ResourceBindingSpec),必选
spec表示规范。
status (ResourceBindingStatus)
status表示 ResourceBinding 的最新状态。
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
响应
200 (ClusterResourceBinding): OK
get
:查询指定 ClusterResourceBinding 的状态
HTTP 请求
GET /apis/work.karmada.io/v1alpha2/clusterresourcebindings/{name}/status
参数
name(路径参数):string,必选
ClusterResourceBinding 名称
pretty(查询参数):string
响应
200 (ClusterResourceBinding): OK
list
:查询全部 ClusterResourceBinding
HTTP 请求
GET /apis/work.karmada.io/v1alpha2/clusterresourcebindings
参数
allowWatchBookmarks(查询参数):boolean
continue(查询参数):string
fieldSelector(查询参数):string
labelSelector(查询参数):string
limit(查询参数):integer
pretty(查询参数):string
resourceVersion(查询参数):string
resourceVersionMatch(查询参数):string
sendInitialEvents(查询参数):boolean
timeoutSeconds(查询参数):integer
watch(查询参数):boolean
响应
200 (ClusterResourceBindingList): OK
create
:创建一个 ClusterResourceBinding
HTTP 请求
POST /apis/work.karmada.io/v1alpha2/clusterresourcebindings
参数
body: ClusterResourceBinding,必选
dryRun(查询参数):string
fieldManager(查询参数):string
fieldValidation(查询参数):string
pretty(查询参数):string
响应
200 (ClusterResourceBinding): OK
201 (ClusterResourceBinding): Created
202 (ClusterResourceBinding): Accepted
update
:更新指定的 ClusterResourceBinding
HTTP 请求
PUT /apis/work.karmada.io/v1alpha2/clusterresourcebindings/{name}
参数
name(路径参数):string,必选
ClusterResourceBinding 名称
body: ClusterResourceBinding,必选
dryRun(查询参数):string
fieldManager(查询参数):string
fieldValidation(查询参数):string
pretty(查询参数):string
响应
200 (ClusterResourceBinding): OK
201 (ClusterResourceBinding): Created
update
:更新指定 ClusterResourceBinding 的状态
HTTP 请求
PUT /apis/work.karmada.io/v1alpha2/clusterresourcebindings/{name}/status
参数
name(路径参数):string,必选
ClusterResourceBinding 名称
body: ClusterResourceBinding,必选
dryRun(查询参数):string
fieldManager(查询参数):string
fieldValidation(查询参数):string
pretty(查询参数):string
响应
200 (ClusterResourceBinding): OK
201 (ClusterResourceBinding): Created
patch
:更新指定 ClusterResourceBinding 的部分信息
HTTP 请求
PATCH /apis/work.karmada.io/v1alpha2/clusterresourcebindings/{name}
参数
name(路径参数):string,必选
ClusterResourceBinding 名称
body: Patch,必选
dryRun(查询参数):string
fieldManager(查询参数):string
fieldValidation(查询参数):string
force(查询参数):boolean
pretty(查询参数):string
响应
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
fieldManager(查询参数):string
fieldValidation(查询参数):string
force(查询参数):boolean
pretty(查询参数):string
响应
200 (ClusterResourceBinding): OK
201 (ClusterResourceBinding): Created
delete
:删除一个 ClusterResourceBinding
HTTP 请求
DELETE /apis/work.karmada.io/v1alpha2/clusterresourcebindings/{name}
参数
name(路径参数):string,必选
ClusterResourceBinding 名称
body: DeleteOptions
dryRun(查询参数):string
gracePeriodSeconds(查询参数):integer
pretty(查询参数):string
propagationPolicy(查询参数):string
响应
200 (Status): OK
202 (Status): Accepted
deletecollection
:删除 ClusterResourceBinding 的集合
HTTP 请求
DELETE /apis/work.karmada.io/v1alpha2/clusterresourcebindings
参数
body: DeleteOptions
continue(查询参数):string
dryRun(查询参数):string
fieldSelector(查询参数):string
gracePeriodSeconds(查询参数):integer
labelSelector(查询参数):string
limit(查询参数):integer
pretty(查询参数):string
propagationPolicy(查询参数):string
resourceVersion(查询参数):string
resourceVersionMatch(查询参数):string
sendInitialEvents(查询参数):boolean
timeoutSeconds(查询参数):integer
响应
200 (Status): OK