matching

package
v0.29.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MatchCriteria

type MatchCriteria interface {
	namespace.NamespaceSelectorProvider
	object.ObjectSelectorProvider

	GetMatchResources() v1beta1.MatchResources
}

type Matcher

type Matcher struct {
	// contains filtered or unexported fields
}

Matcher decides if a request matches against matchCriteria

func NewMatcher

func NewMatcher(
	namespaceLister listersv1.NamespaceLister,
	client kubernetes.Interface,
) *Matcher

NewMatcher initialize the matcher with dependencies requires

func (*Matcher) GetNamespace added in v0.28.0

func (m *Matcher) GetNamespace(name string) (*corev1.Namespace, error)

func (*Matcher) ValidateInitialization

func (m *Matcher) ValidateInitialization() error

ValidateInitialization verify if the matcher is ready before use

Jump to

Keyboard shortcuts

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