From c1055ca471048735d980c88041932515a766cbc7 Mon Sep 17 00:00:00 2001 From: liuzhilin Date: Tue, 21 Jun 2022 20:36:31 +0800 Subject: [PATCH 1/5] Translate docs/reference/kubernetes-api/cluster-resources/lease-v1 --- .../cluster-resources/lease-v1.md | 1074 +++++++++++++++++ 1 file changed, 1074 insertions(+) create mode 100644 content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md diff --git a/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md b/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md new file mode 100644 index 0000000000..8aa5453f44 --- /dev/null +++ b/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md @@ -0,0 +1,1074 @@ +--- +api_metadata: + apiVersion: "coordination.k8s.io/v1" + import: "k8s.io/api/coordination/v1" + kind: "Lease" +content_type: "api_reference" +description: "Lease defines a lease concept." +title: "Lease" +weight: 5 +auto_generated: true +--- + + + +`apiVersion: coordination.k8s.io/v1` + +`import "k8s.io/api/coordination/v1"` + + +## Lease {#Lease} + +Lease 定义了lease 的概念。 +
+ +- **apiVersion**: coordination.k8s.io/v1 + + +- **kind**: Lease + + +- **metadata** (}}">ObjectMeta) + + + 更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + +- **spec** (}}">LeaseSpec) + + + 租赁规范。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + + + +## LeaseSpec {#LeaseSpec} + + +LeaseSpec 是一个 Lease 的规范。 + +
+ + +- **acquireTime** (MicroTime) + + acquireTime 是当前租赁被获取的时间。 + + + *MicroTime 是微妙级精确时间的版本。* + +- **holderIdentity** (string) + + holderIdentity 包含当前租约持有人的身份。 + +- **leaseDurationSeconds** (int32) + + leaseDurationSeconds 是租约候选人需要等待强制获取租约的持续时间。这是相对于上次观察到的更新时间的度量。 + +- **leaseTransitions** (int32) + + LeasetTransitions 是租约持有人之间的转换次数。 + +- **renewTime** (MicroTime) + + renewTime是当前租约持有人上次更新租约的时间。 + + + *MicroTime是具有微秒级精度的时间版本。* + + + + +## LeaseList {#LeaseList} + + +LeaseList是租赁对象的列表。 + +
+ +- **apiVersion**: coordination.k8s.io/v1 + + +- **kind**: LeaseList + + +- **metadata** (}}">ListMeta) + + + 标准列表元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + +- **items** ([]}}">Lease), required + + + Items 是架构对象的列表。 + + + + +## 操作 {#operations} + + +
+ + + + + + +### `get` 读取指定的租约 + +#### HTTP 请求 + +GET /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} + +#### 参数 + + +- **name** (*路径参数*): string, 必需 + + 租约名称 + +- **namespace** (*路径参数*): string, 必需 + + }}">namespace + +- **pretty** (*查询参数*): string + + }}">pretty + + +#### 响应 + +200 (}}">Lease): OK + +401: Unauthorized + + +### `list` 列出或监视租赁类对象 + +#### HTTP 请求 + +GET /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases + + +#### 参数 + + +- **namespace** (*路径参数*): string, 必需 + + }}">namespace + + +- **allowWatchBookmarks** (*查询参数*): boolean + + }}">allowWatchBookmarks + + +- **continue** (*查询参数*): string + + }}">continue + + +- **fieldSelector** (*查询参数*): string + + }}">fieldSelector + + +- **labelSelector** (*查询参数*): string + + }}">labelSelector + + +- **limit** (*查询参数*): integer + + }}">limit + + +- **pretty** (*查询参数*): string + + }}">pretty + + +- **resourceVersion** (*查询参数*): string + + }}">resourceVersion + +- **resourceVersionMatch** (*查询参数*): string + + }}">resourceVersionMatch + + +- **timeoutSeconds** (*查询参数*): integer + + }}">timeoutSeconds + + +- **watch** (*查询参数*): boolean + + }}">watch + + +#### 响应 + +200 (}}">LeaseList): OK + +401: Unauthorized + + +### `list` 列出或监视租赁类对象 + +#### HTTP 请求 + +GET /apis/coordination.k8s.io/v1/leases + + +#### 参数 + + +- **allowWatchBookmarks** (*查询参数*): boolean + + }}">allowWatchBookmarks + + +- **continue** (*查询参数*): string + + }}">continue + + +- **fieldSelector** (*查询参数*): string + + }}">fieldSelector + + +- **labelSelector** (*查询参数*): string + + }}">labelSelector + + +- **limit** (*查询参数*): integer + + }}">limit + + +- **pretty** (*查询参数*): string + + }}">pretty + +- **resourceVersion** (*查询参数*): string + + }}">resourceVersion + +- **resourceVersionMatch** (*查询参数*): string + + }}">resourceVersionMatch + + +- **timeoutSeconds** (*查询参数*): integer + + }}">timeoutSeconds + + +- **watch** (*查询参数*): boolean + + }}">watch + + +#### 响应 + + +200 (}}">LeaseList): OK + +401: Unauthorized + + +### `create` 创建租约 + +#### HTTP 请求 + +POST /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases + + +#### 参数 + + +- **namespace** (*路径参数*): string, 必需 + + }}">namespace + + +- **body**: }}">Lease, 必需 + + + + +- **dryRun** (*查询参数*): string + + }}">dryRun + + +- **fieldManager** (*查询参数*): string + + }}">fieldManager + + +- **fieldValidation** (*查询参数*): string + + }}">fieldValidation + + +- **pretty** (*查询参数*): string + + }}">pretty + + +#### 响应 + + +200 (}}">Lease): OK + +201 (}}">Lease): Created + +202 (}}">Lease): Accepted + +401: Unauthorized + + +### `update` 替换指定的租约 + +#### HTTP 请求 + +PUT /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} + +#### 参数 + + +- **name** (*路径参数*): string, 必需 + + 租约名称 + + +- **namespace** (*路径参数*): string, 必需 + + }}">namespace + + +- **body**: }}">Lease, 必需 + + + + +- **dryRun** (*查询参数*): string + + }}">dryRun + + +- **fieldManager** (*查询参数*): string + + }}">fieldManager + + +- **fieldValidation** (*查询参数*): string + + }}">fieldValidation + +- **pretty** (*查询参数*): string + + }}">pretty + + +#### 响应 + + +200 (}}">Lease): OK + +201 (}}">Lease): Created + +401: Unauthorized + + +### `patch` 部分更新指定的租约 + +#### HTTP 请求 + +PATCH /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} + +#### 参数 + + +- **name** (*路径参数*): string, 必需 + + 租约名称 + + +- **namespace** (*路径参数*): string, 必需 + + }}">namespace + + +- **body**: }}">Patch, 必需 + + + + +- **dryRun** (*查询参数*): string + + }}">dryRun + + +- **fieldManager** (*查询参数*): string + + }}">fieldManager + + +- **fieldValidation** (*查询参数*): string + + }}">fieldValidation + + +- **force** (*查询参数*): boolean + + }}">force + + +- **pretty** (*查询参数*): string + + }}">pretty + + +#### 响应 + + +200 (}}">Lease): OK + +201 (}}">Lease): Created + +401: Unauthorized + + +### `delete` 删除一个租约 + +#### HTTP 请求 + +DELETE /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} + +#### 参数 + + +- **name** (*路径参数*): string, 必需 + + 租约的名称 + + +- **namespace** (*路径参数*): string, 必需 + + }}">namespace + + +- **body**: }}">DeleteOptions + + + + +- **dryRun** (*查询参数*): string + + }}">dryRun + + +- **gracePeriodSeconds** (*查询参数*): integer + + }}">gracePeriodSeconds + + +- **pretty** (*查询参数*): string + + }}">pretty + + +- **propagationPolicy** (*查询参数*): string + + }}">propagationPolicy + + +#### 响应 + + +200 (}}">Status): OK + +202 (}}">Status): Accepted + +401: Unauthorized + + +### `deletecollection` 删除租赁收款 + +#### HTTP 请求 + +DELETE /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases + +#### 参数 + + +- **namespace** (*路径参数*): string, 必需 + + }}">namespace + + +- **body**: }}">DeleteOptions + + + + +- **continue** (*查询参数*): string + + }}">continue + + +- **dryRun** (*查询参数*): string + + }}">dryRun + + +- **fieldSelector** (*查询参数*): string + + }}">fieldSelector + + +- **gracePeriodSeconds** (*查询参数*): integer + + }}">gracePeriodSeconds + + +- **labelSelector** (*查询参数*): string + + }}">labelSelector + + +- **limit** (*查询参数*): integer + + }}">limit + + +- **pretty** (*查询参数*): string + + }}">pretty + + +- **propagationPolicy** (*查询参数*): string + + }}">propagationPolicy + + +- **resourceVersion** (*查询参数*): string + + }}">resourceVersion + + +- **resourceVersionMatch** (*查询参数*): string + + }}">resourceVersionMatch + + +- **timeoutSeconds** (*查询参数*): integer + + }}">timeoutSeconds + + +#### 响应 + + +200 (}}">Status): OK + +401: Unauthorized + From cdd00696da52c1e7be03e6aa11748707574b15c3 Mon Sep 17 00:00:00 2001 From: liuzhilin Date: Wed, 22 Jun 2022 18:15:30 +0800 Subject: [PATCH 2/5] Translate docs/reference/kubernetes-api/cluster-resources/lease-v1 --- .../cluster-resources/lease-v1.md | 158 +++++++++--------- 1 file changed, 79 insertions(+), 79 deletions(-) diff --git a/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md b/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md index 8aa5453f44..25ba32aa53 100644 --- a/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md +++ b/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md @@ -30,7 +30,7 @@ guide. You can file document formatting bugs against the -Lease 定义了lease 的概念。 +Lease 定义了租贷的概念。
- **apiVersion**: coordination.k8s.io/v1 @@ -44,14 +44,14 @@ Lease 定义了lease 的概念。 - 更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + 更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - **spec** (}}">LeaseSpec) - 租赁规范。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + 租贷规范。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status @@ -61,7 +61,7 @@ Lease 定义了lease 的概念。 -LeaseSpec 是一个 Lease 的规范。 +LeaseSpec 是一个租贷的规范。
@@ -97,7 +97,7 @@ LeaseSpec 是一个 Lease 的规范。 acquireTime 是当前租赁被获取的时间。 - *MicroTime 是微妙级精确时间的版本。* + **MicroTime 是微秒级精确时间的版本。** - **holderIdentity** (string) @@ -113,10 +113,10 @@ LeaseSpec 是一个 Lease 的规范。 - **renewTime** (MicroTime) - renewTime是当前租约持有人上次更新租约的时间。 + renewTime 是当前租约持有人上次更新租约的时间。 - *MicroTime是具有微秒级精度的时间版本。* + **MicroTime 是具有微秒级精度的时间版本。** @@ -126,7 +126,7 @@ LeaseSpec 是一个 Lease 的规范。 -LeaseList是租赁对象的列表。 +LeaseList 是租贷对象的列表。
@@ -141,7 +141,7 @@ LeaseList是租赁对象的列表。 - 标准列表元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + 标准列表元数据。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - **items** ([]}}">Lease), required @@ -173,7 +173,7 @@ GET /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} #### Parameters --> -### `get` 读取指定的租约 +### `get` 读取指定的租贷 #### HTTP 请求 @@ -196,15 +196,15 @@ GET /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} }}">pretty --> -- **name** (*路径参数*): string, 必需 +- **name** (**路径参数**): string, 必需 租约名称 -- **namespace** (*路径参数*): string, 必需 +- **namespace** (**路径参数**): string, 必需 }}">namespace -- **pretty** (*查询参数*): string +- **pretty** (**查询参数**): string }}">pretty @@ -291,56 +291,56 @@ GET /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases #### 参数 -- **namespace** (*路径参数*): string, 必需 +- **namespace** (**路径参数**): string, 必需 }}">namespace -- **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 -- **timeoutSeconds** (*查询参数*): integer +- **timeoutSeconds** (**查询参数**): integer }}">timeoutSeconds -- **watch** (*查询参数*): boolean +- **watch** (**查询参数**): boolean }}">watch @@ -358,7 +358,7 @@ GET /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases #### HTTP Request --> -### `list` 列出或监视租赁类对象 +### `list` 列出或监视租贷类对象 #### HTTP 请求 @@ -420,50 +420,50 @@ GET /apis/coordination.k8s.io/v1/leases #### 参数 -- **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 -- **timeoutSeconds** (*查询参数*): integer +- **timeoutSeconds** (**查询参数**): integer }}">timeoutSeconds -- **watch** (*查询参数*): boolean +- **watch** (**查询参数**): boolean }}">watch @@ -489,7 +489,7 @@ GET /apis/coordination.k8s.io/v1/leases POST /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases --> -### `create` 创建租约 +### `create` 创建租贷 #### HTTP 请求 @@ -531,7 +531,7 @@ POST /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases #### 参数 -- **namespace** (*路径参数*): string, 必需 +- **namespace** (**路径参数**): string, 必需 }}">namespace @@ -541,22 +541,22 @@ POST /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases -- **dryRun** (*查询参数*): string +- **dryRun** (**查询参数**): string }}">dryRun -- **fieldManager** (*查询参数*): string +- **fieldManager** (**查询参数**): string }}">fieldManager -- **fieldValidation** (*查询参数*): string +- **fieldValidation** (**查询参数**): string }}">fieldValidation -- **pretty** (*查询参数*): string +- **pretty** (**查询参数**): string }}">pretty @@ -590,7 +590,7 @@ POST /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases PUT /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} --> -### `update` 替换指定的租约 +### `update` 替换指定的租贷 #### HTTP 请求 @@ -636,12 +636,12 @@ PUT /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} #### 参数 -- **name** (*路径参数*): string, 必需 +- **name** (**路径参数**): string, 必需 - 租约名称 + 租贷名称 -- **namespace** (*路径参数*): string, 必需 +- **namespace** (**路径参数**): string, 必需 }}">namespace @@ -651,21 +651,21 @@ PUT /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} -- **dryRun** (*查询参数*): string +- **dryRun** (**查询参数**): string }}">dryRun -- **fieldManager** (*查询参数*): string +- **fieldManager** (**查询参数**): string }}">fieldManager -- **fieldValidation** (*查询参数*): string +- **fieldValidation** (**查询参数**): string }}">fieldValidation -- **pretty** (*查询参数*): string +- **pretty** (**查询参数**): string }}">pretty @@ -695,7 +695,7 @@ PUT /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} PATCH /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} --> -### `patch` 部分更新指定的租约 +### `patch` 部分更新指定的租贷 #### HTTP 请求 @@ -746,12 +746,12 @@ PATCH /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} #### 参数 -- **name** (*路径参数*): string, 必需 +- **name** (**路径参数**): string, 必需 - 租约名称 + 租贷名称 -- **namespace** (*路径参数*): string, 必需 +- **namespace** (**路径参数**): string, 必需 }}">namespace @@ -761,27 +761,27 @@ PATCH /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} -- **dryRun** (*查询参数*): string +- **dryRun** (**查询参数**): string }}">dryRun -- **fieldManager** (*查询参数*): string +- **fieldManager** (**查询参数**): string }}">fieldManager -- **fieldValidation** (*查询参数*): string +- **fieldValidation** (**查询参数**): string }}">fieldValidation -- **force** (*查询参数*): boolean +- **force** (**查询参数**): boolean }}">force -- **pretty** (*查询参数*): string +- **pretty** (**查询参数**): string }}">pretty @@ -811,7 +811,7 @@ PATCH /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} DELETE /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} --> -### `delete` 删除一个租约 +### `delete` 删除一个租贷 #### HTTP 请求 @@ -857,12 +857,12 @@ DELETE /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} #### 参数 -- **name** (*路径参数*): string, 必需 +- **name** (**路径参数**): string, 必需 - 租约的名称 + 租贷的名称 -- **namespace** (*路径参数*): string, 必需 +- **namespace** (**路径参数**): string, 必需 }}">namespace @@ -872,22 +872,22 @@ DELETE /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} -- **dryRun** (*查询参数*): string +- **dryRun** (**查询参数**): string }}">dryRun -- **gracePeriodSeconds** (*查询参数*): integer +- **gracePeriodSeconds** (**查询参数**): integer }}">gracePeriodSeconds -- **pretty** (*查询参数*): string +- **pretty** (**查询参数**): string }}">pretty -- **propagationPolicy** (*查询参数*): string +- **propagationPolicy** (**查询参数**): string }}">propagationPolicy @@ -917,7 +917,7 @@ DELETE /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} DELETE /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases --> -### `deletecollection` 删除租赁收款 +### `deletecollection` 删除租贷收款 #### HTTP 请求 @@ -993,7 +993,7 @@ DELETE /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases #### 参数 -- **namespace** (*路径参数*): string, 必需 +- **namespace** (**路径参数**): string, 必需 }}">namespace @@ -1003,57 +1003,57 @@ DELETE /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases -- **continue** (*查询参数*): string +- **continue** (**查询参数**): string }}">continue -- **dryRun** (*查询参数*): string +- **dryRun** (**查询参数**): string }}">dryRun -- **fieldSelector** (*查询参数*): string +- **fieldSelector** (**查询参数**): string }}">fieldSelector -- **gracePeriodSeconds** (*查询参数*): integer +- **gracePeriodSeconds** (**查询参数**): integer }}">gracePeriodSeconds -- **labelSelector** (*查询参数*): string +- **labelSelector** (**查询参数**): string }}">labelSelector -- **limit** (*查询参数*): integer +- **limit** (**查询参数**): integer }}">limit -- **pretty** (*查询参数*): string +- **pretty** (**查询参数**): string }}">pretty -- **propagationPolicy** (*查询参数*): string +- **propagationPolicy** (**查询参数**): string }}">propagationPolicy -- **resourceVersion** (*查询参数*): string +- **resourceVersion** (**查询参数**): string }}">resourceVersion -- **resourceVersionMatch** (*查询参数*): string +- **resourceVersionMatch** (**查询参数**): string }}">resourceVersionMatch -- **timeoutSeconds** (*查询参数*): integer +- **timeoutSeconds** (**查询参数**): integer }}">timeoutSeconds From 06a51d10c97243ec7a949fd5a26a6996a6fb27e8 Mon Sep 17 00:00:00 2001 From: liuzhilin Date: Thu, 23 Jun 2022 10:11:03 +0800 Subject: [PATCH 3/5] Translate docs/reference/kubernetes-api/cluster-resources/lease-v1 --- .../cluster-resources/lease-v1.md | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md b/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md index 25ba32aa53..3b2f519039 100644 --- a/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md +++ b/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md @@ -30,7 +30,7 @@ guide. You can file document formatting bugs against the -Lease 定义了租贷的概念。 +Lease 定义了租赁的概念。
- **apiVersion**: coordination.k8s.io/v1 @@ -61,7 +61,7 @@ Lease 定义了租贷的概念。 -LeaseSpec 是一个租贷的规范。 +LeaseSpec 是一个租赁的规范。
@@ -126,7 +126,7 @@ LeaseSpec 是一个租贷的规范。 -LeaseList 是租贷对象的列表。 +LeaseList 是租赁对象的列表。
@@ -173,7 +173,7 @@ GET /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} #### Parameters --> -### `get` 读取指定的租贷 +### `get` 读取指定的租赁 #### HTTP 请求 @@ -198,7 +198,7 @@ GET /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} --> - **name** (**路径参数**): string, 必需 - 租约名称 + 租赁名称 - **namespace** (**路径参数**): string, 必需 @@ -358,7 +358,7 @@ GET /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases #### HTTP Request --> -### `list` 列出或监视租贷类对象 +### `list` 列出或监视租赁类对象 #### HTTP 请求 @@ -489,7 +489,7 @@ GET /apis/coordination.k8s.io/v1/leases POST /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases --> -### `create` 创建租贷 +### `create` 创建租赁 #### HTTP 请求 @@ -590,7 +590,7 @@ POST /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases PUT /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} --> -### `update` 替换指定的租贷 +### `update` 替换指定的租赁 #### HTTP 请求 @@ -695,7 +695,7 @@ PUT /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} PATCH /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} --> -### `patch` 部分更新指定的租贷 +### `patch` 部分更新指定的租赁 #### HTTP 请求 @@ -811,7 +811,7 @@ PATCH /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} DELETE /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} --> -### `delete` 删除一个租贷 +### `delete` 删除一个租赁 #### HTTP 请求 @@ -917,7 +917,7 @@ DELETE /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} DELETE /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases --> -### `deletecollection` 删除租贷收款 +### `deletecollection` 删除租赁收款 #### HTTP 请求 From 299afad15da663b2319976b0db1df3cdeac50d8b Mon Sep 17 00:00:00 2001 From: liuzhilin Date: Thu, 23 Jun 2022 11:11:40 +0800 Subject: [PATCH 4/5] Translate docs/reference/kubernetes-api/cluster-resources/lease-v1 --- .../cluster-resources/lease-v1.md | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md b/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md index 3b2f519039..12d626ef5b 100644 --- a/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md +++ b/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md @@ -30,7 +30,7 @@ guide. You can file document formatting bugs against the -Lease 定义了租赁的概念。 +Lease 定义了租约的概念。
- **apiVersion**: coordination.k8s.io/v1 @@ -51,7 +51,7 @@ Lease 定义了租赁的概念。 - 租贷规范。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + Lease 规范。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status @@ -61,7 +61,7 @@ Lease 定义了租赁的概念。 -LeaseSpec 是一个租赁的规范。 +LeaseSpec 是一个 Lease 的规范。
@@ -94,7 +94,7 @@ LeaseSpec 是一个租赁的规范。 --> - **acquireTime** (MicroTime) - acquireTime 是当前租赁被获取的时间。 + acquireTime 是当前租约被获取的时间。 **MicroTime 是微秒级精确时间的版本。** @@ -126,7 +126,7 @@ LeaseSpec 是一个租赁的规范。 -LeaseList 是租赁对象的列表。 +LeaseList 是 Lease 对象的列表。
@@ -198,7 +198,7 @@ GET /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} --> - **name** (**路径参数**): string, 必需 - 租赁名称 + Lease 名称 - **namespace** (**路径参数**): string, 必需 @@ -224,7 +224,7 @@ GET /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} GET /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases --> -### `list` 列出或监视租赁类对象 +### `list` 列出或监视 Lease 类对象 #### HTTP 请求 @@ -358,7 +358,7 @@ GET /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases #### HTTP Request --> -### `list` 列出或监视租赁类对象 +### `list` 列出或监视 Lease 类对象 #### HTTP 请求 @@ -489,7 +489,7 @@ GET /apis/coordination.k8s.io/v1/leases POST /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases --> -### `create` 创建租赁 +### `create` 创建 Lease #### HTTP 请求 @@ -590,7 +590,7 @@ POST /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases PUT /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} --> -### `update` 替换指定的租赁 +### `update` 替换指定的 Lease #### HTTP 请求 @@ -695,7 +695,7 @@ PUT /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} PATCH /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} --> -### `patch` 部分更新指定的租赁 +### `patch` 部分更新指定的 Lease #### HTTP 请求 @@ -811,7 +811,7 @@ PATCH /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} DELETE /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} --> -### `delete` 删除一个租赁 +### `delete` 删除一个 Lease #### HTTP 请求 @@ -917,7 +917,7 @@ DELETE /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} DELETE /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases --> -### `deletecollection` 删除租赁收款 +### `deletecollection` 删除 Lease 收款 #### HTTP 请求 From a5a809a079816fd303501c3448570937513c47c9 Mon Sep 17 00:00:00 2001 From: liuzhilin Date: Fri, 24 Jun 2022 15:49:55 +0800 Subject: [PATCH 5/5] remove auto_generated: true --- .../docs/reference/kubernetes-api/cluster-resources/lease-v1.md | 1 - 1 file changed, 1 deletion(-) diff --git a/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md b/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md index 12d626ef5b..425cfcab7f 100644 --- a/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md +++ b/content/zh-cn/docs/reference/kubernetes-api/cluster-resources/lease-v1.md @@ -7,7 +7,6 @@ content_type: "api_reference" description: "Lease defines a lease concept." title: "Lease" weight: 5 -auto_generated: true ---