diff --git a/content/zh-cn/docs/reference/access-authn-authz/authentication.md b/content/zh-cn/docs/reference/access-authn-authz/authentication.md index 7767df58462..cf888213f26 100644 --- a/content/zh-cn/docs/reference/access-authn-authz/authentication.md +++ b/content/zh-cn/docs/reference/access-authn-authz/authentication.md @@ -1997,7 +1997,7 @@ The following `ExecCredential` manifest describes a cluster information sample. --> ## 为客户端提供的对身份验证信息的 API 访问 {#self-subject-review} -{{< feature-state for_k8s_version="v1.26" state="alpha" >}} +{{< feature-state for_k8s_version="v1.27" state="beta" >}} -为了方便,Kubernetes 提供了 `kubectl alpha auth whoami` 命令。 +为了方便,Kubernetes 提供了 `kubectl auth whoami` 命令。 执行此命令将产生以下输出(但将显示不同的用户属性): * 简单的输出示例 @@ -2173,16 +2173,16 @@ By default, all authenticated users can create `SelfSubjectReview` objects when You can only make `SelfSubjectReview` requests if: * the `APISelfSubjectReview` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) - is enabled for your cluster -* the API server for your cluster has the `authentication.k8s.io/v1alpha1` + is enabled for your cluster (enabled by default after reaching Beta) +* the API server for your cluster has the `authentication.k8s.io/v1alpha1` or `authentication.k8s.io/v1beta1` {{< glossary_tooltip term_id="api-group" text="API group" >}} enabled. --> 你只能在以下情况下进行 `SelfSubjectReview` 请求: -* 集群启用了 `APISelfSubjectReview` +* 集群启用了 `APISelfSubjectReview` (Beta 版本默认启用) [特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/) -* 集群的 API 服务器已启用 `authentication.k8s.io/v1alpha1` +* 集群的 API 服务器已启用 `authentication.k8s.io/v1alpha1` 或者 `authentication.k8s.io/v1beta1` {{< glossary_tooltip term_id="api-group" text="API 组" >}}。。 {{< /note >}}