Documentation
¶
Overview ¶
Package filter provides filtering functionality for Kubernetes resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Resources ¶
func Resources(objs []*unstructured.Unstructured, opts *Option) []*unstructured.Unstructured
Resources removes resources based on the provided filter options
Types ¶
type Option ¶
type Option struct {
ExcludeKinds []string // List of Kinds to exclude from filtering
LabelSelector map[string]string // Label selector to filter resources (exact match)
AnnotationSelector map[string]string // Annotation selector to filter resources (exact match)
}
Option controls the filtering behavior for Kubernetes resources
func DefaultOption ¶
func DefaultOption() *Option
DefaultOption returns the default filtering options
Click to show internal directories.
Click to hide internal directories.