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),必选
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