Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter holds the objects needed to reconcile an integration PipelineRun.
func NewAdapter ¶
func NewAdapter(context context.Context, pipelineRun *tektonv1.PipelineRun, application *applicationapiv1alpha1.Application, snapshot *applicationapiv1alpha1.Snapshot, logger h.IntegrationLogger, loader loader.ObjectLoader, client client.Client, ) *Adapter
NewAdapter creates and returns an Adapter instance.
func (*Adapter) EnsureStatusReportedInSnapshot ¶
func (a *Adapter) EnsureStatusReportedInSnapshot() (controller.OperationResult, error)
EnsureStatusReportedInSnapshot will ensure that status of the integration test pipelines is reported to snapshot to be consumed by user
func (*Adapter) GetIntegrationPipelineRunStatus ¶
func (a *Adapter) GetIntegrationPipelineRunStatus(ctx context.Context, adapterClient client.Client, pipelineRun *tektonv1.PipelineRun) (intgteststat.IntegrationTestStatus, string, error)
GetIntegrationPipelineRunStatus checks the Tekton results for a given PipelineRun and returns status of test.
type AdapterInterface ¶
type AdapterInterface interface {
EnsureStatusReportedInSnapshot() (controller.OperationResult, error)
}
AdapterInterface is an interface defining all the operations that should be defined in an Integration adapter.
type Reconciler ¶
Reconciler reconciles an integration PipelineRun object
func NewIntegrationReconciler ¶
func NewIntegrationReconciler(client client.Client, logger *logr.Logger, scheme *runtime.Scheme) *Reconciler
NewIntegrationReconciler creates and returns a Reconciler.
Click to show internal directories.
Click to hide internal directories.