userinfo

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// SaPrefix represents service account prefix in admission requests
	SaPrefix = "system:serviceaccount:"
	// KyvernoSuffix ...
	KyvernoSuffix = "kyverno:"
)

Variables

This section is empty.

Functions

func GetRoleRef

func GetRoleRef(rbLister rbaclister.RoleBindingLister, crbLister rbaclister.ClusterRoleBindingLister, request *v1beta1.AdmissionRequest, dynamicConfig config.Interface) (roles []string, clusterRoles []string, err error)

GetRoleRef gets the list of roles and cluster roles for the incoming api-request

func IsRoleAuthorize added in v1.2.0

func IsRoleAuthorize(rbLister rbaclister.RoleBindingLister, crbLister rbaclister.ClusterRoleBindingLister, rLister rbaclister.RoleLister, crLister rbaclister.ClusterRoleLister, request *v1beta1.AdmissionRequest, dynamicConfig config.Interface) (bool, error)

IsRoleAuthorize is role authorize or not

Types

This section is empty.

Jump to

Keyboard shortcuts

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