useridentity

package
v2.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL