Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TODO: need to confirm that name of user/group annotations // UserIdentityAnnotation is identity annotation UserIdentityAnnotation = "open-cluster-management.io/user-identity" // UserGroupAnnotation is user group annotation UserGroupAnnotation = "open-cluster-management.io/user-group" )
Variables ¶
This section is empty.
Functions ¶
func MergeUserIdentityToAnnotations ¶
func MergeUserIdentityToAnnotations( userInfo authenticationv1.UserInfo, annotations map[string]string, namespace string, listers rbaclisters.RoleBindingLister, ) map[string]string
Types ¶
type AdmissionHandler ¶
type AdmissionHandler struct {
Lister rbaclisters.RoleBindingLister
}
func (*AdmissionHandler) ServeMutateResource ¶
func (a *AdmissionHandler) ServeMutateResource(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.