func hasWildcard(slice []string) bool { … }
func validateResources(resources []string, fldPath *field.Path) field.ErrorList { … }
func validateResourcesNoSubResources(resources []string, fldPath *field.Path) field.ErrorList { … }
var validScopes …
func validateRule(rule *admissionregistration.Rule, fldPath *field.Path, allowSubResource bool) field.ErrorList { … }
var AcceptedAdmissionReviewVersions …
func isAcceptedAdmissionReviewVersion(v string) bool { … }
func validateAdmissionReviewVersions(versions []string, requireRecognizedAdmissionReviewVersion bool, fldPath *field.Path) field.ErrorList { … }
func ValidateValidatingWebhookConfiguration(e *admissionregistration.ValidatingWebhookConfiguration) field.ErrorList { … }
func validateValidatingWebhookConfiguration(e *admissionregistration.ValidatingWebhookConfiguration, opts validationOptions) field.ErrorList { … }
func ValidateMutatingWebhookConfiguration(e *admissionregistration.MutatingWebhookConfiguration) field.ErrorList { … }
type validationOptions …
type preexistingExpressions …
func newPreexistingExpressions() preexistingExpressions { … }
func findMutatingPreexistingExpressions(mutating *admissionregistration.MutatingWebhookConfiguration) preexistingExpressions { … }
func findValidatingPreexistingExpressions(validating *admissionregistration.ValidatingWebhookConfiguration) preexistingExpressions { … }
func findValidatingPolicyPreexistingExpressions(validatingPolicy *admissionregistration.ValidatingAdmissionPolicy) preexistingExpressions { … }
func validateMutatingWebhookConfiguration(e *admissionregistration.MutatingWebhookConfiguration, opts validationOptions) field.ErrorList { … }
func validateValidatingWebhook(hook *admissionregistration.ValidatingWebhook, opts validationOptions, fldPath *field.Path) field.ErrorList { … }
func validateMutatingWebhook(hook *admissionregistration.MutatingWebhook, opts validationOptions, fldPath *field.Path) field.ErrorList { … }
var supportedFailurePolicies …
var supportedMatchPolicies …
var supportedSideEffectClasses …
var noSideEffectClasses …
var supportedOperations …
var supportedReinvocationPolicies …
var supportedValidationPolicyReason …
func hasWildcardOperation(operations []admissionregistration.OperationType) bool { … }
func validateRuleWithOperations(ruleWithOperations *admissionregistration.RuleWithOperations, fldPath *field.Path) field.ErrorList { … }
func mutatingHasAcceptedAdmissionReviewVersions(webhooks []admissionregistration.MutatingWebhook) bool { … }
func validatingHasAcceptedAdmissionReviewVersions(webhooks []admissionregistration.ValidatingWebhook) bool { … }
func ignoreMutatingWebhookMatchConditions(new, old []admissionregistration.MutatingWebhook) bool { … }
func ignoreValidatingWebhookMatchConditions(new, old []admissionregistration.ValidatingWebhook) bool { … }
func ignoreValidatingAdmissionPolicyMatchConditions(new, old *admissionregistration.ValidatingAdmissionPolicy) bool { … }
func mutatingHasUniqueWebhookNames(webhooks []admissionregistration.MutatingWebhook) bool { … }
func validatingHasUniqueWebhookNames(webhooks []admissionregistration.ValidatingWebhook) bool { … }
func mutatingHasNoSideEffects(webhooks []admissionregistration.MutatingWebhook) bool { … }
func validatingHasNoSideEffects(webhooks []admissionregistration.ValidatingWebhook) bool { … }
func validatingWebhookHasInvalidLabelValueInSelector(webhooks []admissionregistration.ValidatingWebhook) bool { … }
func mutatingWebhookHasInvalidLabelValueInSelector(webhooks []admissionregistration.MutatingWebhook) bool { … }
func ValidateValidatingWebhookConfigurationUpdate(newC, oldC *admissionregistration.ValidatingWebhookConfiguration) field.ErrorList { … }
func ValidateMutatingWebhookConfigurationUpdate(newC, oldC *admissionregistration.MutatingWebhookConfiguration) field.ErrorList { … }
const maxAuditAnnotations …
const maxAuditAnnotationValueExpressionLength …
func ValidateValidatingAdmissionPolicy(p *admissionregistration.ValidatingAdmissionPolicy) field.ErrorList { … }
func validateValidatingAdmissionPolicy(p *admissionregistration.ValidatingAdmissionPolicy, opts validationOptions) field.ErrorList { … }
func validateValidatingAdmissionPolicySpec(meta metav1.ObjectMeta, spec *admissionregistration.ValidatingAdmissionPolicySpec, opts validationOptions, fldPath *field.Path) field.ErrorList { … }
func validateParamKind(gvk admissionregistration.ParamKind, fldPath *field.Path) field.ErrorList { … }
type groupVersion …
func parseGroupVersion(gv string) (groupVersion, error) { … }
func validateMatchResources(mc *admissionregistration.MatchResources, fldPath *field.Path) field.ErrorList { … }
var validValidationActions …
func validateValidationActions(va []admissionregistration.ValidationAction, fldPath *field.Path) field.ErrorList { … }
func validateNamedRuleWithOperations(n *admissionregistration.NamedRuleWithOperations, fldPath *field.Path) field.ErrorList { … }
func validateMatchConditions(m []admissionregistration.MatchCondition, opts validationOptions, fldPath *field.Path) field.ErrorList { … }
func validateMatchCondition(v *admissionregistration.MatchCondition, opts validationOptions, fldPath *field.Path) field.ErrorList { … }
func validateVariable(compiler plugincel.Compiler, v *admissionregistration.Variable, paramKind *admissionregistration.ParamKind, opts validationOptions, fldPath *field.Path) field.ErrorList { … }
func validateValidation(compiler plugincel.Compiler, v *admissionregistration.Validation, paramKind *admissionregistration.ParamKind, opts validationOptions, fldPath *field.Path) field.ErrorList { … }
func validateCELCondition(compiler plugincel.Compiler, expression plugincel.ExpressionAccessor, variables plugincel.OptionalVariableDeclarations, envType environment.Type, fldPath *field.Path) field.ErrorList { … }
func convertCELErrorToValidationError(fldPath *field.Path, expression plugincel.ExpressionAccessor, err error) *field.Error { … }
func validateValidationExpression(compiler plugincel.Compiler, expression string, hasParams bool, opts validationOptions, fldPath *field.Path) field.ErrorList { … }
func validateMatchConditionsExpression(expression string, opts validationOptions, fldPath *field.Path) field.ErrorList { … }
func validateMessageExpression(compiler plugincel.Compiler, expression string, opts validationOptions, fldPath *field.Path) field.ErrorList { … }
func validateAuditAnnotation(compiler plugincel.Compiler, meta metav1.ObjectMeta, v *admissionregistration.AuditAnnotation, paramKind *admissionregistration.ParamKind, opts validationOptions, fldPath *field.Path) field.ErrorList { … }
var newlineMatcher …
func hasNewlines(s string) bool { … }
func ValidateValidatingAdmissionPolicyBinding(pb *admissionregistration.ValidatingAdmissionPolicyBinding) field.ErrorList { … }
func validateValidatingAdmissionPolicyBinding(pb *admissionregistration.ValidatingAdmissionPolicyBinding) field.ErrorList { … }
func validateValidatingAdmissionPolicyBindingSpec(spec *admissionregistration.ValidatingAdmissionPolicyBindingSpec, fldPath *field.Path) field.ErrorList { … }
func validateParamRef(pr *admissionregistration.ParamRef, fldPath *field.Path) field.ErrorList { … }
func ValidateValidatingAdmissionPolicyUpdate(newC, oldC *admissionregistration.ValidatingAdmissionPolicy) field.ErrorList { … }
func ValidateValidatingAdmissionPolicyStatusUpdate(newC, oldC *admissionregistration.ValidatingAdmissionPolicy) field.ErrorList { … }
func ValidateValidatingAdmissionPolicyBindingUpdate(newC, oldC *admissionregistration.ValidatingAdmissionPolicyBinding) field.ErrorList { … }
func validateValidatingAdmissionPolicyStatus(status *admissionregistration.ValidatingAdmissionPolicyStatus, fldPath *field.Path) field.ErrorList { … }
func validateTypeChecking(typeChecking *admissionregistration.TypeChecking, fldPath *field.Path) field.ErrorList { … }
func validateExpressionWarnings(expressionWarnings []admissionregistration.ExpressionWarning, fldPath *field.Path) field.ErrorList { … }
func validateExpressionWarning(expressionWarning *admissionregistration.ExpressionWarning, fldPath *field.Path) field.ErrorList { … }
func validateFieldRef(fieldRef string, fldPath *field.Path) field.ErrorList { … }
var lazyStrictStatelessCELCompilerInit …
var lazyStrictStatelessCELCompiler …
var lazyNonStrictStatelessCELCompilerInit …
var lazyNonStrictStatelessCELCompiler …
func getStrictStatelessCELCompiler() plugincel.Compiler { … }
func getNonStrictStatelessCELCompiler() plugincel.Compiler { … }
func createCompiler(allowComposition, strictCost bool) plugincel.Compiler { … }
var celIdentRegex …
var celReserved …
func isCELIdentifier(name string) bool { … }