garbage

package
v0.26.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	Log logr.Logger

	Client          *kube.DynamicClient
	ChartReconciler helm.ChartReconciler

	// Instance is a representation of an inventory.
	// It can store, delete and read items.
	// The object does not include the storage itself, it only holds a reference to the storage.
	InventoryInstance *inventory.Instance

	WorkerPoolSize int
}

Collector inspects the inventory for dangling manifests or helm releases, which are undefined in the navecd gitops repository, and uninstalls them from the Kubernetes cluster and inventory.

func (*Collector) Collect

func (c *Collector) Collect(
	ctx context.Context,
	dag *component.DependencyGraph,
) error

Collect inspects the inventory for dangling manifests or helm releases, which are undefined in the navecd gitops repository, and uninstalls them from the Kubernetes cluster and inventory. The DependencyGraph is a representation of the gitops repository.

Jump to

Keyboard shortcuts

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