You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If your cluster has the API enabled, you can use the `SelfSubjectReview` API to find out how your Kubernetes cluster maps your authentication information to identify you as a client. This works whether you are authenticating as a user (typically representing a real person) or as a ServiceAccount.
@@ -2016,12 +2016,12 @@ Kubernetes API 服务器收到请求后,将使用用户属性填充 status 字
2016
2016
请求示例(主体将是 `SelfSubjectReview`):
2017
2017
2018
2018
```
2019
-
POST /apis/authentication.k8s.io/v1alpha1/selfsubjectreviews
2019
+
POST /apis/authentication.k8s.io/v1beta1/selfsubjectreviews
2020
2020
```
2021
2021
2022
2022
```json
2023
2023
{
2024
-
"apiVersion": "authentication.k8s.io/v1alpha1",
2024
+
"apiVersion": "authentication.k8s.io/v1beta1",
2025
2025
"kind": "SelfSubjectReview"
2026
2026
}
2027
2027
```
@@ -2033,7 +2033,7 @@ Response example:
2033
2033
2034
2034
```json
2035
2035
{
2036
-
"apiVersion": "authentication.k8s.io/v1alpha1",
2036
+
"apiVersion": "authentication.k8s.io/v1beta1",
2037
2037
"kind": "SelfSubjectReview",
2038
2038
"status": {
2039
2039
"userInfo": {
@@ -2053,11 +2053,11 @@ Response example:
2053
2053
```
2054
2054
2055
2055
<!--
2056
-
For convenience, the `kubectl alpha auth whoami` command is present. Executing this command will produce the following output (yet different user attributes will be shown):
2056
+
For convenience, the `kubectl auth whoami` command is present. Executing this command will produce the following output (yet different user attributes will be shown):
0 commit comments