package matching
import "k8s.io/apiserver/pkg/admission/plugin/policy/matching"
Index ¶
- type MatchCriteria
- type Matcher
- func NewMatcher( namespaceLister listersv1.NamespaceLister, client kubernetes.Interface, ) *Matcher
- func (m *Matcher) GetNamespace(name string) (*corev1.Namespace, error)
- func (m *Matcher) Matches(attr admission.Attributes, o admission.ObjectInterfaces, criteria MatchCriteria) (bool, schema.GroupVersionResource, schema.GroupVersionKind, error)
- func (m *Matcher) ValidateInitialization() error
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
Source Files ¶
matching.go
- Version
- v0.30.0
- Published
- Apr 17, 2024
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 18 minutes ago –
Tools for package owners.