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{})
Click to show internal directories.
Click to hide internal directories.