detector

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detector

type Detector struct {
	// contains filtered or unexported fields
}

Detector owns detector materials.

func New

func New(conf *gitopszombiesv1.Config, kubeconfigArgs *genericclioptions.ConfigFlags, printFlags *k8sget.PrintFlags) (*Detector, error)

New creates a new detection object.

func (*Detector) DetectZombies

func (d *Detector) DetectZombies() (resourceCount int, zombies map[string][]unstructured.Unstructured, err error)

DetectZombies detects all workload not managed by gitops.

func (*Detector) PrintZombies

func (d *Detector) PrintZombies(allZombies map[string][]unstructured.Unstructured) error

PrintZombies prints all workload not managed by gitops.

Jump to

Keyboard shortcuts

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