From 1e6c02e1cd46d4c3a577a0055b4ff46550255538 Mon Sep 17 00:00:00 2001 From: "wei.wang" Date: Thu, 21 Apr 2022 01:25:21 +0800 Subject: [PATCH] [zh]update file content/zh/docs/reference/access-authn-authz/rbac.md --- content/zh/docs/reference/access-authn-authz/rbac.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/zh/docs/reference/access-authn-authz/rbac.md b/content/zh/docs/reference/access-authn-authz/rbac.md index 59c5a00d72..85a982786c 100644 --- a/content/zh/docs/reference/access-authn-authz/rbac.md +++ b/content/zh/docs/reference/access-authn-authz/rbac.md @@ -574,23 +574,23 @@ rules: -允许读/写在 "extensions" 和 "apps" API 组中的 Deployment(在 HTTP 层面,对应 +允许读/写在 `"apps"` API 组中的 Deployment(在 HTTP 层面,对应 URL 中资源部分为 "deployments"): ```yaml rules: -- apiGroups: ["extensions", "apps"] +- apiGroups: ["apps"] resources: ["deployments"] verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] ``` -允许读取核心 API 组中的 "pods" 和读/写 `"batch"` 或 `"extensions"` API 组中的 +允许读取核心 API 组中的 "pods" 和读/写 `"batch"` API 组中的 "jobs": ```yaml @@ -598,7 +598,7 @@ rules: - apiGroups: [""] resources: ["pods"] verbs: ["get", "list", "watch"] -- apiGroups: ["batch", "extensions"] +- apiGroups: ["batch"] resources: ["jobs"] verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] ```