cleanup

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package cleanup contains logic of cleanup agent. A cleanup agent watches the status change of LoadTests. The cleanup agent do nothing when the triggering LoadTest is not terminated. When triggering LoadTest is terminated, the cleanup agent checks if all its pods are terminated, and send quit RPC to stop the those unterminated.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	client.Client
	Log     logr.Logger
	Scheme  *runtime.Scheme
	Timeout time.Duration
}

Agent cleanup unwanted processes.

func (*Agent) Reconcile

func (a *Agent) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile attempts to check status of workers of the triggering LoadTest. If a terminated LoadTest has workers running, reconcile will send callQuitter RPC to stop the workers.

func (*Agent) SetupWithManager

func (a *Agent) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager configures a controller-runtime manager.

Jump to

Keyboard shortcuts

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