garbagecollector

package
v0.0.0-...-a9bd9a2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Interval represents the interval to run Garbage Collection
	Interval = 5 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GarbageCollector

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

GarbageCollector represents a Workflow Garbage Collector. It collects orphaned Jobs.

func NewGarbageCollector

func NewGarbageCollector(kubeClient client.Client) *GarbageCollector

NewGarbageCollector initializes and returns a GarbageCollector

func (*GarbageCollector) CollectRedisClusterGarbage

func (c *GarbageCollector) CollectRedisClusterGarbage() error

CollectRedisClusterGarbage collects the orphaned pods and services. Looks through the informer list and removes missing pods via DeleteCollection primitive.

func (*GarbageCollector) Run

func (c *GarbageCollector) Run(stop <-chan struct{})

type Interface

type Interface interface {
	CollectRedisClusterGarbage() error
}

Interface GarbageCollector interface

Jump to

Keyboard shortcuts

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