You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@yunikorn.apache.org by "KatLantyss (via GitHub)" <gi...@apache.org> on 2023/04/27 08:25:35 UTC

[GitHub] [yunikorn-site] KatLantyss opened a new pull request, #290: [YUNIKORN-1415] Adding Chinese translation of ACLs

KatLantyss opened a new pull request, #290:
URL: https://github.com/apache/yunikorn-site/pull/290

   ### What is this PR for?
   Adding Chinese translation of ACLs
   
   
   ### What type of PR is it?
   * [ ] - Bug Fix
   * [ ] - Improvement
   * [ ] - Feature
   * [*] - Documentation
   * [ ] - Hot Fix
   * [ ] - Refactoring
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@yunikorn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [yunikorn-site] 0yukali0 commented on a diff in pull request #290: [YUNIKORN-1415] Adding Chinese translation of ACLs

Posted by "0yukali0 (via GitHub)" <gi...@apache.org>.
0yukali0 commented on code in PR #290:
URL: https://github.com/apache/yunikorn-site/pull/290#discussion_r1219165206


##########
i18n/zh-cn/docusaurus-plugin-content-docs/current/user_guide/acls.md:
##########
@@ -0,0 +1,120 @@
+---
+id: acls
+title: ACLs
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+:::info
+用户信息通过 [这里](usergroup_resolution) 定义的方法从 kubernetes shim 传递给核心调度器。

Review Comment:
   核心调度器 -> yunikorn core



##########
package.json:
##########
@@ -12,6 +12,7 @@
   "dependencies": {
     "@docusaurus/core": "2.4.1",
     "@docusaurus/preset-classic": "2.4.1",
+

Review Comment:
   Remove the additional line.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@yunikorn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [yunikorn-site] 0yukali0 commented on a diff in pull request #290: [YUNIKORN-1415] Adding Chinese translation of ACLs

Posted by "0yukali0 (via GitHub)" <gi...@apache.org>.
0yukali0 commented on code in PR #290:
URL: https://github.com/apache/yunikorn-site/pull/290#discussion_r1193693971


##########
i18n/zh-cn/docusaurus-plugin-content-docs/current/user_guide/acls.md:
##########
@@ -0,0 +1,119 @@
+---
+id: acls
+title: ACLs
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+:::info
+用户信息通过 [这里](usergroup_resolution) 定义的方法从 kubernetes shim 传递给核心调度器。
+:::
+
+## 使用方法
+访问控制列表对 YuniKorn 来说是通用的。
+它们可以在 YuniKorn 的多个地方使用。
+目前的使用情况仅限于队列 ACL。
+
+访问控制列表允许对列表中指定的用户和组进行访问。
+他们不提供明确删除或拒绝访问列表中指定的用户和组的可能性。
+
+如果没有配置访问控制列表,默认情况下访问是 *拒绝* 的。
+
+## 语法
+访问控制列表的定义如下:
+```
+ACL ::= “*” |  userlist [ “ “ grouplist ]
+userlist ::= “” | user { “,” user }
+grouplist ::= “” | group { “,” group }
+```
+
+这个定义指定了一个通配符 *,结果是每个人都可以访问。
+
+如果用户列表为空,组列表为空,则没有人可以访问。
+拒绝所有的 ACL 有两种可能的表现形式:
+* 一个空的访问控制列表。(隐含的)

Review Comment:
   (隐式)
   一个空格(显式)



##########
i18n/zh-cn/docusaurus-plugin-content-docs/current/user_guide/acls.md:
##########
@@ -0,0 +1,119 @@
+---
+id: acls
+title: ACLs
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+:::info
+用户信息通过 [这里](usergroup_resolution) 定义的方法从 kubernetes shim 传递给核心调度器。
+:::
+
+## 使用方法
+访问控制列表对 YuniKorn 来说是通用的。
+它们可以在 YuniKorn 的多个地方使用。
+目前的使用情况仅限于队列 ACL。
+
+访问控制列表允许对列表中指定的用户和组进行访问。
+他们不提供明确删除或拒绝访问列表中指定的用户和组的可能性。
+
+如果没有配置访问控制列表,默认情况下访问是 *拒绝* 的。
+
+## 语法
+访问控制列表的定义如下:
+```
+ACL ::= “*” |  userlist [ “ “ grouplist ]
+userlist ::= “” | user { “,” user }
+grouplist ::= “” | group { “,” group }
+```
+
+这个定义指定了一个通配符 *,结果是每个人都可以访问。
+
+如果用户列表为空,组列表为空,则没有人可以访问。
+拒绝所有的 ACL 有两种可能的表现形式:
+* 一个空的访问控制列表。(隐含的)
+* 一个单一的空格。(显式的)
+
+## 示例配置
+
+### 简单示例
+一个只允许用户 `sue` 访问的 ACL
+```yaml
+  adminacl: sue
+```
+其他人不会得到访问权,这只是为了 `sue`。

Review Comment:
   这仅适用于



##########
i18n/zh-cn/docusaurus-plugin-content-docs/current/user_guide/acls.md:
##########
@@ -0,0 +1,119 @@
+---
+id: acls
+title: ACLs
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+:::info
+用户信息通过 [这里](usergroup_resolution) 定义的方法从 kubernetes shim 传递给核心调度器。
+:::
+
+## 使用方法
+访问控制列表对 YuniKorn 来说是通用的。
+它们可以在 YuniKorn 的多个地方使用。
+目前的使用情况仅限于队列 ACL。
+
+访问控制列表允许对列表中指定的用户和组进行访问。
+他们不提供明确删除或拒绝访问列表中指定的用户和组的可能性。
+
+如果没有配置访问控制列表,默认情况下访问是 *拒绝* 的。
+
+## 语法
+访问控制列表的定义如下:
+```
+ACL ::= “*” |  userlist [ “ “ grouplist ]
+userlist ::= “” | user { “,” user }
+grouplist ::= “” | group { “,” group }
+```
+
+这个定义指定了一个通配符 *,结果是每个人都可以访问。
+
+如果用户列表为空,组列表为空,则没有人可以访问。
+拒绝所有的 ACL 有两种可能的表现形式:
+* 一个空的访问控制列表。(隐含的)
+* 一个单一的空格。(显式的)
+
+## 示例配置
+
+### 简单示例
+一个只允许用户 `sue` 访问的 ACL
+```yaml
+  adminacl: sue
+```
+其他人不会得到访问权,这只是为了 `sue`。
+`john` 和 `bob` 将被拒绝访问。
+
+一个允许用户 `sue` 和组 `dev` 成员访问的 ACL。
+```yaml
+  adminacl: sue dev
+```
+用户 `sue` 根据她在ACL的用户部分的明确提及而获得访问权。
+尽管她不是 `dev` 组的成员。她的组员身份是不相关的。
+
+名为 `john` 的用户是 `dev` 组的成员,他将被允许根据他的组员身份进行访问。
+第三个用户叫 `bob` ,他没有被明确提到,也不是 `dev` 组的成员,将被拒绝访问。
+
+一个允许访问 `dev` 和 `test` 组成员的 ACL。
+```yaml
+  adminacl: " dev,test"
+```
+ACL必须以空格开始,表示没有用户列表。
+如果ACL没有正确引用,空格会被 yaml 解析器删除。
+由于用户列表是空的,除非他们是 `dev` 或 `test` 组的成员,否则没有一个用户会得到访问权。
+
+看一下和之前一样的三个用户:
+用户 `sue` 不是任何一个组的成员,被拒绝访问。
+名为 `john` 的用户是 `dev` 组的成员,根据他的组员身份,他将被允许访问。
+`bob` 不是 `dev` 组的成员,但是是 `test` 的成员,将被允许访问。

Review Comment:
   `bob` 不是 `dev` 组的成员。由于其为 `test` 的成员,所以'bob'将被允许访问。



##########
i18n/zh-cn/docusaurus-plugin-content-docs/current/user_guide/acls.md:
##########
@@ -0,0 +1,119 @@
+---
+id: acls
+title: ACLs
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+:::info
+用户信息通过 [这里](usergroup_resolution) 定义的方法从 kubernetes shim 传递给核心调度器。
+:::
+
+## 使用方法
+访问控制列表对 YuniKorn 来说是通用的。
+它们可以在 YuniKorn 的多个地方使用。
+目前的使用情况仅限于队列 ACL。
+
+访问控制列表允许对列表中指定的用户和组进行访问。
+他们不提供明确删除或拒绝访问列表中指定的用户和组的可能性。
+
+如果没有配置访问控制列表,默认情况下访问是 *拒绝* 的。
+
+## 语法
+访问控制列表的定义如下:
+```
+ACL ::= “*” |  userlist [ “ “ grouplist ]
+userlist ::= “” | user { “,” user }
+grouplist ::= “” | group { “,” group }
+```
+
+这个定义指定了一个通配符 *,结果是每个人都可以访问。
+
+如果用户列表为空,组列表为空,则没有人可以访问。
+拒绝所有的 ACL 有两种可能的表现形式:
+* 一个空的访问控制列表。(隐含的)
+* 一个单一的空格。(显式的)
+
+## 示例配置
+
+### 简单示例
+一个只允许用户 `sue` 访问的 ACL
+```yaml
+  adminacl: sue
+```
+其他人不会得到访问权,这只是为了 `sue`。
+`john` 和 `bob` 将被拒绝访问。
+
+一个允许用户 `sue` 和组 `dev` 成员访问的 ACL。
+```yaml
+  adminacl: sue dev
+```
+用户 `sue` 根据她在ACL的用户部分的明确提及而获得访问权。
+尽管她不是 `dev` 组的成员。她的组员身份是不相关的。
+
+名为 `john` 的用户是 `dev` 组的成员,他将被允许根据他的组员身份进行访问。
+第三个用户叫 `bob` ,他没有被明确提到,也不是 `dev` 组的成员,将被拒绝访问。
+
+一个允许访问 `dev` 和 `test` 组成员的 ACL。
+```yaml
+  adminacl: " dev,test"
+```
+ACL必须以空格开始,表示没有用户列表。
+如果ACL没有正确引用,空格会被 yaml 解析器删除。
+由于用户列表是空的,除非他们是 `dev` 或 `test` 组的成员,否则没有一个用户会得到访问权。
+
+看一下和之前一样的三个用户:
+用户 `sue` 不是任何一个组的成员,被拒绝访问。
+名为 `john` 的用户是 `dev` 组的成员,根据他的组员身份,他将被允许访问。
+`bob` 不是 `dev` 组的成员,但是是 `test` 的成员,将被允许访问。
+
+### 转移引号

Review Comment:
   转义和引号



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@yunikorn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [yunikorn-site] KatLantyss commented on pull request #290: [YUNIKORN-1415] Adding Chinese translation of ACLs

Posted by "KatLantyss (via GitHub)" <gi...@apache.org>.
KatLantyss commented on PR #290:
URL: https://github.com/apache/yunikorn-site/pull/290#issuecomment-1578147248

   @0yukali0 Thanks for checking the grammer!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@yunikorn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [yunikorn-site] 0yukali0 commented on a diff in pull request #290: [YUNIKORN-1415] Adding Chinese translation of ACLs

Posted by "0yukali0 (via GitHub)" <gi...@apache.org>.
0yukali0 commented on code in PR #290:
URL: https://github.com/apache/yunikorn-site/pull/290#discussion_r1193696106


##########
i18n/zh-cn/docusaurus-plugin-content-docs/current/user_guide/acls.md:
##########
@@ -0,0 +1,119 @@
+---
+id: acls
+title: ACLs
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+:::info
+用户信息通过 [这里](usergroup_resolution) 定义的方法从 kubernetes shim 传递给核心调度器。
+:::
+
+## 使用方法
+访问控制列表对 YuniKorn 来说是通用的。
+它们可以在 YuniKorn 的多个地方使用。
+目前的使用情况仅限于队列 ACL。
+
+访问控制列表允许对列表中指定的用户和组进行访问。
+他们不提供明确删除或拒绝访问列表中指定的用户和组的可能性。
+
+如果没有配置访问控制列表,默认情况下访问是 *拒绝* 的。
+
+## 语法
+访问控制列表的定义如下:
+```
+ACL ::= “*” |  userlist [ “ “ grouplist ]
+userlist ::= “” | user { “,” user }
+grouplist ::= “” | group { “,” group }
+```
+
+这个定义指定了一个通配符 *,结果是每个人都可以访问。
+
+如果用户列表为空,组列表为空,则没有人可以访问。
+拒绝所有的 ACL 有两种可能的表现形式:
+* 一个空的访问控制列表。(隐含的)
+* 一个单一的空格。(显式的)
+
+## 示例配置
+
+### 简单示例
+一个只允许用户 `sue` 访问的 ACL
+```yaml
+  adminacl: sue
+```
+其他人不会得到访问权,这只是为了 `sue`。

Review Comment:
   这仅适用于`sue`。



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@yunikorn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [yunikorn-site] 0yukali0 merged pull request #290: [YUNIKORN-1415] Adding Chinese translation of ACLs

Posted by "0yukali0 (via GitHub)" <gi...@apache.org>.
0yukali0 merged PR #290:
URL: https://github.com/apache/yunikorn-site/pull/290


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@yunikorn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org