package rules

import "k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/rules"

Index

Functions

func IsExemptAdmissionConfigurationResource

func IsExemptAdmissionConfigurationResource(attr admission.Attributes) bool

IsExemptAdmissionConfigurationResource determines if an admission.Attributes object is describing the admission of a ValidatingWebhookConfiguration or a MutatingWebhookConfiguration or a ValidatingAdmissionPolicy or a ValidatingAdmissionPolicyBinding

Types

type Matcher

type Matcher struct {
	Rule v1.RuleWithOperations
	Attr admission.Attributes
}

Matcher determines if the Attr matches the Rule.

func (*Matcher) Matches

func (r *Matcher) Matches() bool

Matches returns if the Attr matches the Rule.

Source Files

rules.go

Version
v0.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
1 hour ago

Tools for package owners.