common

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllSteps

func AllSteps() []pipeline.PipelineStep

func Bootstrap

func Bootstrap(params Params) error

Types

type Params

type Params struct {
	fx.In

	Mgr             ctrl.Manager
	Client          client.Client
	Logger          logr.Logger
	Selector        *selector.Selector
	RecorderBuilder *recorder.RecorderBuilder
	Impls           []*chaosimpltypes.ChaosImplPair `group:"impl"`
	Reader          client.Reader                   `name:"no-cache"`
	Steps           []pipeline.PipelineStep
}

type PickChildCRDPredicate

type PickChildCRDPredicate struct {
	predicate.Funcs
}

PickChildCRDPredicate allows events to trigger the Reconcile of Chaos CRD, for example: Reconcile of IOChaos could be triggered by changes on PodIOChaos. For now, we have PodHttpChaos/PodIOChaos/PodNetworkChaos which require to follow this pattern.

func (PickChildCRDPredicate) Update

Update implements UpdateEvent filter for child CRD.

type RemoteChaosPredicate

type RemoteChaosPredicate struct {
	predicate.Funcs
}

func (RemoteChaosPredicate) Create

func (RemoteChaosPredicate) Delete

func (RemoteChaosPredicate) Generic

func (RemoteChaosPredicate) Update

type StatusRecordEventsChangePredicate

type StatusRecordEventsChangePredicate struct {
	predicate.Funcs
}

StatusRecordEventsChangePredicate skip the update event, when we Only update object.status.experiment.records[].events

func (StatusRecordEventsChangePredicate) Update

Update implements UpdateEvent filter for update to filter the events which we Only update object.status.experiment.records[].events

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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