filter

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2025 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL