criteria

package
v0.0.0-...-57e6299 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DownscaleStrategy    = "downscale"
	RolloutAbortStrategy = "abort-rollout"
)

Variables

View Source
var ErrNoAvailableStrategies = errors.New("no cleanup strategies suitable for this deployment")

Functions

This section is empty.

Types

type CleanUpJudge

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

func NewCleanUpJudge

func NewCleanUpJudge(config *config.Config) *CleanUpJudge

func (*CleanUpJudge) Judge

func (j *CleanUpJudge) Judge(deployments []*appsv1.Deployment) []*appsv1.Deployment

type CoreCriteriaJudge

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

func NewCoreCriteriaJudge

func NewCoreCriteriaJudge(
	config *config.Config,
	client client.Client,
	metric *metrics.Metrics,
	history *metrics.History,
	unleash *unleash.Client,
	armed bool) *CoreCriteriaJudge

func (*CoreCriteriaJudge) Failing

func (d *CoreCriteriaJudge) Failing(ctx context.Context, deployments *appsv1.DeploymentList) []*appsv1.Deployment

type Executioner

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

func NewExecutioner

func NewExecutioner(
	config *config.Config,
	client client.Client,
	metrics *metrics.Metrics,
	history *metrics.History) *Executioner

func (*Executioner) Kill

func (e *Executioner) Kill(ctx context.Context, deployments []*appsv1.Deployment)

Jump to

Keyboard shortcuts

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