collector

package
v0.0.0-...-086a7b7 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterFunc

type FilterFunc func(res unstructured.Unstructured, logger klog.Logger) bool

FilterFunc is a function that filters resources.

func IgnoreHelmSecret

func IgnoreHelmSecret() FilterFunc

IgnoreHelmSecret returns a FilterFunc which filters secrets owned by helm.

func IgnoreIfHelmReleaseFound

func IgnoreIfHelmReleaseFound(helmReleases []helmapi.HelmRelease) FilterFunc

IgnoreIfHelmReleaseFound returns a FilterFunc which filters resources part of an helm release.

func IgnoreIfKustomizationFound

func IgnoreIfKustomizationFound(kustomizations []ksapi.Kustomization) FilterFunc

IgnoreIfKustomizationFound returns a FilterFunc which filters resources part of a flux kustomization.

func IgnoreOwnedResource

func IgnoreOwnedResource() FilterFunc

IgnoreOwnedResource returns a FilterFunc which filters resources owner by parents ones.

func IgnoreRuleExclusions

func IgnoreRuleExclusions(cluster string, exclusions []v1.ExcludeResources) FilterFunc

IgnoreRuleExclusions returns a FilterFunc which excludes resources part of configuration exclusions.

func IgnoreServiceAccountSecret

func IgnoreServiceAccountSecret() FilterFunc

IgnoreServiceAccountSecret returns a FilterFunc which filters secrets linked to a service account.

type Interface

type Interface interface {
	Discover(ctx context.Context, list *unstructured.UnstructuredList, ch chan unstructured.Unstructured) error
}

Interface represents collector interface.

func NewDiscovery

func NewDiscovery(logger klog.Logger, filters ...FilterFunc) Interface

NewDiscovery returns a new discovery instance.

Jump to

Keyboard shortcuts

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