Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct {
// Name is the value from metadata.name field selector, empty if not specified
Name string
// Namespace is the value from metadata.namespace field selector, empty if not specified
Namespace string
}
Filter holds field selector filters extracted from a field selector string.
func ParseFieldSelector ¶
ParseFieldSelector parses a field selector and extracts metadata.name and metadata.namespace values. Other field selectors are silently ignored as controller-runtime cache doesn't support them. See: https://github.com/kubernetes-sigs/controller-runtime/issues/612
func (*Filter) MatchesName ¶
MatchesName returns true if the filter has no name constraint or if the name matches.
func (*Filter) MatchesNamespace ¶
MatchesNamespace returns true if the filter has no namespace constraint or if the namespace matches.
Click to show internal directories.
Click to hide internal directories.