matching

package
v1.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2025 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchImage added in v1.14.1

func MatchImage(image string, c ...compiler.MatchImageReference) (bool, error)

Types

type MatchCriteria

type MatchCriteria struct {
	Constraints *admissionregistrationv1.MatchResources
}

func (*MatchCriteria) GetMatchResources

func (m *MatchCriteria) GetMatchResources() admissionregistrationv1.MatchResources

GetMatchResources returns the matchConstraints

func (*MatchCriteria) GetParsedNamespaceSelector

func (m *MatchCriteria) GetParsedNamespaceSelector() (labels.Selector, error)

GetParsedNamespaceSelector returns the converted LabelSelector which implements labels.Selector

func (*MatchCriteria) GetParsedObjectSelector

func (m *MatchCriteria) GetParsedObjectSelector() (labels.Selector, error)

GetParsedObjectSelector returns the converted LabelSelector which implements labels.Selector

type Matcher

type Matcher interface {
	Match(matching.MatchCriteria, admission.Attributes, runtime.Object) (bool, error)
}

func NewMatcher

func NewMatcher() Matcher

Directories

Path Synopsis
predicates

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL