SelfSubjectReview
apiVersion: authentication.k8s.io/v1
import "k8s.io/api/authentication/v1"
SelfSubjectReview
SelfSubjectReview 包含 kube-apiserver 关于发出此请求的用户的用户信息。使用模拟时,用户将收到被模拟用户的用户信息。如果使用模拟或请求标头身份验证,任何额外的键将忽略其大小写并以小写形式返回。
apiVersion: authentication.k8s.io/v1
kind: SelfSubjectReview
metadata (ObjectMeta)
标准对象的元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
status (SelfSubjectReviewStatus)
状态由服务器填充用户属性。
SelfSubjectReviewStatus
SelfSubjectReviewStatus 由 kube-apiserver 填充并发送回用户。
userInfo (UserInfo)
发出此请求的用户的用户属性。
UserInfo 包含实现 user.Info 接口所需的用户信息。
userInfo.extra (map[string][]string)
身份验证器提供的任何附加信息。
userInfo.groups ([]string)
原子性的:将在合并期间被替换
此用户所属的组的名称。
userInfo.uid (string)
一个唯一值,用于跨时间标识此用户。如果此用户被删除并添加了另一个同名用户,则他们将具有不同的 UID。
userInfo.username (string)
在所有活动用户中唯一标识此用户的名称。
操作
create
创建一个 SelfSubjectReview
HTTP 请求
POST /apis/authentication.k8s.io/v1/selfsubjectreviews
参数
body: SelfSubjectReview,必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
响应
200 (SelfSubjectReview): OK
201 (SelfSubjectReview): Created(已创建)
202 (SelfSubjectReview): Accepted(已接受)
401: Unauthorized(未授权)
此页面自动生成。
如果您计划报告此页面的问题,请在问题描述中提及该页面是自动生成的。修复可能需要在 Kubernetes 项目的其他地方进行。