Documentation ¶
Index ¶
- Constants
- type Reconciler
- func (r *Reconciler) ApplyObjectToCluster(ctx context.Context, objJSON []byte, testCaseName string) error
- func (r *Reconciler) ApplyValueToTemplate(objectTemplate *tofaniov1alpha1.ObjectTemplate, path string, value []byte) ([]byte, error)
- func (r *Reconciler) CheckTestCaseResourcesReadiness(ctx context.Context, testCase *tofaniov1alpha1.TestCase, ...) (bool, error)
- func (r *Reconciler) ProcessTestCase(ctx context.Context, objectTemplate *tofaniov1alpha1.ObjectTemplate, ...) error
- func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *Reconciler) TeardownResourcesForTestCase(ctx context.Context, testCase *tofaniov1alpha1.TestCase, ...) error
Constants ¶
View Source
const ( StatusPending string = "Pending" StatusInProgress string = "InProgress" StatusCompleted string = "Completed" StatusError string = "Error" StatusPendingReason string = "AwaitingExecution" StatusInProgressReason string = "ExecutionStarted" StatusCompletedReason string = "ExecutionSuccessful" StatusErrorReason string = "ExecutionFailed" StatusPendingMsg string = "The TestCase is pending and has not started execution." StatusInProgressMsg string = "The TestCase is currently in progress." StatusCompletedMsg string = "The TestCase has completed successfully." StatusErrorMsg string = "The TestCase encountered an error during execution." )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct {
common.Reconciler
}
Reconciler reconciles a TestCase object
func (*Reconciler) ApplyObjectToCluster ¶
func (*Reconciler) ApplyValueToTemplate ¶
func (r *Reconciler) ApplyValueToTemplate(objectTemplate *tofaniov1alpha1.ObjectTemplate, path string, value []byte) ([]byte, error)
ApplyValueToTemplate applies dynamic field value to the specified ObjectTemplate
func (*Reconciler) CheckTestCaseResourcesReadiness ¶
func (r *Reconciler) CheckTestCaseResourcesReadiness(ctx context.Context, testCase *tofaniov1alpha1.TestCase, objTpl *tofaniov1alpha1.ObjectTemplate) (bool, error)
CheckTestCaseResourcesReadiness checks if the given resources are ready by examining its status conditions.
func (*Reconciler) ProcessTestCase ¶
func (r *Reconciler) ProcessTestCase(ctx context.Context, objectTemplate *tofaniov1alpha1.ObjectTemplate, testCase *tofaniov1alpha1.TestCase) error
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*Reconciler) TeardownResourcesForTestCase ¶
func (r *Reconciler) TeardownResourcesForTestCase(ctx context.Context, testCase *tofaniov1alpha1.TestCase, objTpl *tofaniov1alpha1.ObjectTemplate) error
TeardownResourcesForTestCase deletes all resources associated with a given TestCase, using objTpl to identify resource types.
Click to show internal directories.
Click to hide internal directories.