package matching
import "k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching"
Index ¶
Types ¶
type MatchCriteria ¶
type MatchCriteria interface { namespace.NamespaceSelectorProvider object.ObjectSelectorProvider GetMatchResources() v1alpha1.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) Matches ¶
func (m *Matcher) Matches(attr admission.Attributes, o admission.ObjectInterfaces, criteria MatchCriteria) (bool, schema.GroupVersionKind, error)
func (*Matcher) ValidateInitialization ¶
ValidateInitialization verify if the matcher is ready before use
Source Files ¶
matching.go
- Version
- v0.26.6
- Published
- Jun 14, 2023
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 9 minutes ago –
Tools for package owners.