Merge pull request #31271 from deads2k/self-sar
Automatic merge from submit-queue add selfsubjectaccessreview API Exposes the REST API for self subject access reviews. This allows a user to see whether or not they can perform a particular action. @kubernetes/sig-auth
This commit is contained in:
@@ -38,6 +38,10 @@ type SubjectAccessReview struct {
|
||||
Status SubjectAccessReviewStatus
|
||||
}
|
||||
|
||||
// +genclient=true
|
||||
// +nonNamespaced=true
|
||||
// +noMethods=true
|
||||
|
||||
// SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a
|
||||
// spec.namespace means "in all namespaces". Self is a special case, because users should always be able
|
||||
// to check whether they can perform an action
|
||||
|
@@ -39,6 +39,10 @@ type SubjectAccessReview struct {
|
||||
Status SubjectAccessReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
|
||||
}
|
||||
|
||||
// +genclient=true
|
||||
// +nonNamespaced=true
|
||||
// +noMethods=true
|
||||
|
||||
// SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a
|
||||
// spec.namespace means "in all namespaces". Self is a special case, because users should always be able
|
||||
// to check whether they can perform an action
|
||||
|
Reference in New Issue
Block a user