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)
Status 由伺服器填寫,包含使用者屬性。
SelfSubjectReviewStatus
SelfSubjectReviewStatus 由 kube-apiserver 填寫,並傳回給使用者。
userInfo (UserInfo)
提出此請求的使用者屬性。
UserInfo 保存實作 user.Info 介面所需的使用者資訊。
userInfo.extra (map[string][]string)
驗證器提供的任何額外資訊。
userInfo.groups ([]string)
Atomic:將在合併期間被取代
此使用者所屬群組的名稱。
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 (查詢參數): 字串
回應
200 (SelfSubjectReview): 成功
201 (SelfSubjectReview): 已建立
202 (SelfSubjectReview): 已接受
401: 未經授權
此頁面為自動產生。
如果您計劃回報此頁面的問題,請在您的問題描述中提及此頁面為自動產生。此問題的修正可能需要在 Kubernetes 專案的其他地方進行。