test

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RunAsUser         = 1001 // non-root user must match id used in Dockerfile
	SeleniumNoVNCPort = 7900 // Default NoVNC port exposed as service when enabled
)

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 JobNameFor added in v0.11.0

func JobNameFor(test *v1alpha1.Test) string

JobNameFor returns the name to use for the testing pod.

func ResourceNameFor added in v0.11.0

func ResourceNameFor(test *v1alpha1.Test) string

ResourceNameFor 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