Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Log = log.Log.WithName("controller").WithName("test")
Log --
Functions ¶
func Add ¶
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
TestJobNameFor returns the name to use for the testing pod
func TestResourceNameFor ¶
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.
type ReconcileIntegrationTest ¶
type ReconcileIntegrationTest struct {
// contains filtered or unexported fields
}
ReconcileIntegrationTest reconciles a IntegrationTest object
func (*ReconcileIntegrationTest) Reconcile ¶
func (r *ReconcileIntegrationTest) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
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.