From df6326f0ea9bf6522041b557cf549b47d691a7c9 Mon Sep 17 00:00:00 2001 From: windsonsea Date: Tue, 27 Aug 2024 09:13:41 +0800 Subject: [PATCH] [zh] Sync a api doc: component-status-v1.md --- .../cluster-resources/component-status-v1.md | 54 +++++++++++++------ 1 file changed, 38 insertions(+), 16 deletions(-) diff --git a/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/component-status-v1.md b/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/component-status-v1.md index 640d761cc2..e138ec40a3 100644 --- a/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/component-status-v1.md +++ b/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/component-status-v1.md @@ -6,7 +6,7 @@ api_metadata: content_type: "api_reference" description: "ComponentStatus(和 ComponentStatusList)保存集群检验信息。" title: "ComponentStatus" -weight: 10 +weight: 2 --- @@ -49,15 +49,21 @@ ComponentStatus(和 ComponentStatusList)保存集群检验信息。 **补丁策略:基于键 `type` 合并** + + **Map:合并期间根据键 type 保留其唯一值** 观测到的组件状况的列表。 @@ -91,11 +97,13 @@ ComponentStatus(和 ComponentStatusList)保存集群检验信息。 组件状况相关消息。例如,有关健康检查的信息。 ## ComponentStatusList {#ComponentStatusList} + 作为 ComponentStatus 对象列表,所有组件状况的状态。 已废弃:该 API 在 v1.19 及更高版本中废弃。 +
- **apiVersion**: v1 @@ -125,24 +133,33 @@ Status of all the conditions for the component as a list of ComponentStatus obje #### HTTP Request --> ## 操作 {#Operations} +
### `get` 读取指定的 ComponentStatus + #### HTTP 请求 + GET /api/v1/componentstatuses/{name} #### 参数 -- **name** (**路径参数**): string,必需 - ComponentStatus 的名称 +- **name**(**路径参数**):string,必需 -- **pretty** (**查询参数**): string + ComponentStatus 的名称。 + +- **pretty**(**查询参数**):string }}">pretty @@ -150,6 +167,7 @@ GET /api/v1/componentstatuses/{name} #### Response --> #### 响应 + 200 (}}">ComponentStatus): OK 401: Unauthorized @@ -159,7 +177,9 @@ GET /api/v1/componentstatuses/{name} #### HTTP Request --> ### `list` 列出 ComponentStatus 类别的对象 + #### HTTP 请求 + GET /api/v1/componentstatuses #### 参数 -- **allowWatchBookmarks** (**查询参数**): boolean + +- **allowWatchBookmarks**(**查询参数**):boolean }}">allowWatchBookmarks -- **continue** (**查询参数**): string +- **continue**(**查询参数**):string }}">continue -- **fieldSelector** (**查询参数**): string +- **fieldSelector**(**查询参数**):string }}">fieldSelector -- **labelSelector** (**查询参数**): string +- **labelSelector**(**查询参数**):string }}">labelSelector -- **limit** (**查询参数**): integer +- **limit**(**查询参数**):integer }}">limit -- **pretty** (**查询参数**): string +- **pretty**(**查询参数**):string }}">pretty -- **resourceVersion** (**查询参数**): string +- **resourceVersion**(**查询参数**):string }}">resourceVersion -- **resourceVersionMatch** (**查询参数**): string +- **resourceVersionMatch**(**查询参数**):string }}">resourceVersionMatch -- **sendInitialEvents** (**查询参数**): boolean +- **sendInitialEvents**(**查询参数**):boolean }}">sendInitialEvents -- **timeoutSeconds** (**查询参数**): integer +- **timeoutSeconds**(**查询参数**):integer }}">timeoutSeconds -- **watch** (**查询参数**): boolean +- **watch**(**查询参数**):boolean }}">watch @@ -225,6 +246,7 @@ GET /api/v1/componentstatuses #### Response --> #### 响应 + 200 (}}">ComponentStatusList): OK 401: Unauthorized