detector

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Overview

Package detector provides functionality for detecting zombie resources in Kubernetes clusters.

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