package matchconditions
import "k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions"
Index ¶
Types ¶
type MatchCondition ¶
type MatchCondition v1.MatchCondition
MatchCondition contains the inputs needed to compile, evaluate and match a cel expression
func (*MatchCondition) GetExpression ¶
func (v *MatchCondition) GetExpression() string
func (*MatchCondition) ReturnTypes ¶
func (v *MatchCondition) ReturnTypes() []*cel.Type
type MatchResult ¶
type Matcher ¶
type Matcher interface { // Match is used to take cel evaluations and convert into decisions Match(ctx context.Context, versionedAttr *admission.VersionedAttributes, versionedParams runtime.Object, authz authorizer.Authorizer) MatchResult }
Matcher contains logic for converting Evaluations to bool of matches or does not match
func NewMatcher ¶
func NewMatcher(filter celplugin.ConditionEvaluator, failPolicy *v1.FailurePolicyType, matcherKind, matcherType, objectName string) Matcher
Source Files ¶
interface.go matcher.go
- Version
- v0.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 16 packages
- Last checked
- 2 hours ago –
Tools for package owners.