Documentation

Index

Constants

View Source
const (
	SaPrefix      = "system:serviceaccount:"
	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

    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.

      Source Files