Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ForbiddenUserVariables = []*regexp.Regexp{ regexp.MustCompile(`[^\.](serviceAccountName)\b`), regexp.MustCompile(`[^\.](serviceAccountNamespace)\b`), regexp.MustCompile(`[^\.](request.userInfo)\b`), regexp.MustCompile(`[^\.](request.roles)\b`), regexp.MustCompile(`[^\.](request.clusterRoles)\b`), }
Functions ¶
func Validate ¶
func Validate(policy, oldPolicy kyvernov1.PolicyInterface, client dclient.Interface, kyvernoClient versioned.Interface, mock bool, username string) ([]string, error)
Validate checks the policy and rules declarations for required configurations
func ValidateOnPolicyUpdate ¶
func ValidateOnPolicyUpdate(p kyvernov1.PolicyInterface, onPolicyUpdate bool) error
func ValidateVariables ¶
func ValidateVariables(p kyvernov1.PolicyInterface, backgroundMode bool) error
Types ¶
Click to show internal directories.
Click to hide internal directories.