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() v1.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 ¶
func (*Matcher) Matches ¶
func (m *Matcher) Matches(attr admission.Attributes, o admission.ObjectInterfaces, criteria MatchCriteria) (bool, schema.GroupVersionResource, schema.GroupVersionKind, error)
func (*Matcher) ValidateInitialization ¶
ValidateInitialization verify if the matcher is ready before use
Click to show internal directories.
Click to hide internal directories.