mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
use generated clients instead of expansions for most of authn/z
This commit is contained in:
parent
845b232321
commit
533d0b7f74
@ -40,7 +40,7 @@ const (
|
|||||||
|
|
||||||
// +genclient
|
// +genclient
|
||||||
// +genclient:nonNamespaced
|
// +genclient:nonNamespaced
|
||||||
// +genclient:noVerbs
|
// +genclient:onlyVerbs=create
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// TokenReview attempts to authenticate a token to a known user.
|
// TokenReview attempts to authenticate a token to a known user.
|
||||||
|
@ -24,7 +24,7 @@ import (
|
|||||||
|
|
||||||
// +genclient
|
// +genclient
|
||||||
// +genclient:nonNamespaced
|
// +genclient:nonNamespaced
|
||||||
// +genclient:noVerbs
|
// +genclient:onlyVerbs=create
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// TokenReview attempts to authenticate a token to a known user.
|
// TokenReview attempts to authenticate a token to a known user.
|
||||||
|
@ -24,7 +24,7 @@ import (
|
|||||||
|
|
||||||
// +genclient
|
// +genclient
|
||||||
// +genclient:nonNamespaced
|
// +genclient:nonNamespaced
|
||||||
// +genclient:noVerbs
|
// +genclient:onlyVerbs=create
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// SubjectAccessReview checks whether or not a user or group can perform an action.
|
// SubjectAccessReview checks whether or not a user or group can perform an action.
|
||||||
@ -43,7 +43,7 @@ type SubjectAccessReview struct {
|
|||||||
|
|
||||||
// +genclient
|
// +genclient
|
||||||
// +genclient:nonNamespaced
|
// +genclient:nonNamespaced
|
||||||
// +genclient:noVerbs
|
// +genclient:onlyVerbs=create
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a
|
// SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a
|
||||||
@ -63,7 +63,7 @@ type SelfSubjectAccessReview struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// +genclient
|
// +genclient
|
||||||
// +genclient:noVerbs
|
// +genclient:onlyVerbs=create
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace.
|
// LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace.
|
||||||
@ -189,7 +189,7 @@ type SubjectAccessReviewStatus struct {
|
|||||||
|
|
||||||
// +genclient
|
// +genclient
|
||||||
// +genclient:nonNamespaced
|
// +genclient:nonNamespaced
|
||||||
// +genclient:noVerbs
|
// +genclient:onlyVerbs=create
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace.
|
// SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace.
|
||||||
|
@ -24,7 +24,7 @@ import (
|
|||||||
|
|
||||||
// +genclient
|
// +genclient
|
||||||
// +genclient:nonNamespaced
|
// +genclient:nonNamespaced
|
||||||
// +genclient:noVerbs
|
// +genclient:onlyVerbs=create
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// SubjectAccessReview checks whether or not a user or group can perform an action.
|
// SubjectAccessReview checks whether or not a user or group can perform an action.
|
||||||
@ -43,7 +43,7 @@ type SubjectAccessReview struct {
|
|||||||
|
|
||||||
// +genclient
|
// +genclient
|
||||||
// +genclient:nonNamespaced
|
// +genclient:nonNamespaced
|
||||||
// +genclient:noVerbs
|
// +genclient:onlyVerbs=create
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a
|
// SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a
|
||||||
@ -63,7 +63,7 @@ type SelfSubjectAccessReview struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// +genclient
|
// +genclient
|
||||||
// +genclient:noVerbs
|
// +genclient:onlyVerbs=create
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace.
|
// LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace.
|
||||||
@ -189,7 +189,7 @@ type SubjectAccessReviewStatus struct {
|
|||||||
|
|
||||||
// +genclient
|
// +genclient
|
||||||
// +genclient:nonNamespaced
|
// +genclient:nonNamespaced
|
||||||
// +genclient:noVerbs
|
// +genclient:onlyVerbs=create
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace.
|
// SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace.
|
||||||
|
@ -4061,6 +4061,7 @@ type ServiceList struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// +genclient
|
// +genclient
|
||||||
|
// +genclient:method=CreateToken,verb=create,subresource=token,input=k8s.io/api/authentication/v1.TokenRequest,result=k8s.io/api/authentication/v1.TokenRequest
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// ServiceAccount binds together:
|
// ServiceAccount binds together:
|
||||||
|
Loading…
Reference in New Issue
Block a user