test

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = log.Log.WithName("controller").WithName("test")

Log --

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new Test Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

func TestJobNameFor added in v0.2.0

func TestJobNameFor(test *v1alpha1.Test) string

TestJobNameFor returns the name to use for the testing pod

func TestResourceNameFor

func TestResourceNameFor(test *v1alpha1.Test) string

TestResourceNameFor returns the name to use for generic testing resources

Types

type Action

type Action interface {
	client.Injectable
	log.Injectable

	// a user friendly name for the action
	Name() string

	// returns true if the action can handle the test
	CanHandle(build *v1alpha1.Test) bool

	// executes the handling function
	Handle(ctx context.Context, build *v1alpha1.Test) (*v1alpha1.Test, error)
}

Action --

func NewEvaluateAction

func NewEvaluateAction() Action

NewEvaluateAction creates a new evaluate action

func NewInitializeAction

func NewInitializeAction() Action

NewInitializeAction creates a new initialize action

func NewMonitorAction

func NewMonitorAction() Action

NewMonitorAction creates a new monitor action

func NewNoopAction added in v0.1.0

func NewNoopAction() Action

NewNoopAction is used to put an test resource out of the operator lifecycle.

The resource must be updated by an external entity (e.g. the yaks CLI) to a new state when ready to start a new workflow.

func NewStartAction

func NewStartAction() Action

NewStartAction creates a new start action

type ReconcileIntegrationTest

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

ReconcileIntegrationTest reconciles a IntegrationTest object

func (*ReconcileIntegrationTest) Reconcile

Reconcile reads that state of the cluster for a Test object and makes changes based on the state read and what is in the Test.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

Jump to

Keyboard shortcuts

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