Documentation
¶
Index ¶
Constants ¶
const SnapshotRetryTimeout = time.Duration(3 * time.Hour)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter holds the objects needed to reconcile a snapshot's test status report.
func NewAdapter ¶
func NewAdapter(context context.Context, snapshot *applicationapiv1alpha1.Snapshot, application *applicationapiv1alpha1.Application, logger helpers.IntegrationLogger, loader loader.ObjectLoader, client client.Client, ) *Adapter
NewAdapter creates and returns an Adapter instance.
func (*Adapter) EnsureSnapshotFinishedAllTests ¶
func (a *Adapter) EnsureSnapshotFinishedAllTests() (controller.OperationResult, error)
EnsureSnapshotFinishedAllTests is an operation that will ensure that a pipeline Snapshot to the PipelineRun being processed finished and passed all tests for all defined required IntegrationTestScenarios.
func (*Adapter) EnsureSnapshotTestStatusReportedToGitProvider ¶
func (a *Adapter) EnsureSnapshotTestStatusReportedToGitProvider() (controller.OperationResult, error)
EnsureSnapshotTestStatusReportedToGitProvider will ensure that integration test status is reported to the git provider which (indirectly) triggered its execution. The status is reported to git provider if it is a component snapshot Or reported to git providers which trigger component snapshots included in group snapshot if it is a group snapshot
func (*Adapter) ReportSnapshotStatus ¶
func (a *Adapter) ReportSnapshotStatus(testedSnapshot *applicationapiv1alpha1.Snapshot) error
ReportSnapshotStatus reports status of all integration tests into Pull Requests from component snapshot or group snapshot
type AdapterInterface ¶
type AdapterInterface interface { EnsureSnapshotTestStatusReportedToGitHub() (controller.OperationResult, error) EnsureSnapshotFinishedAllTests() (controller.OperationResult, error) }
AdapterInterface is an interface defining all the operations that should be defined in an Integration adapter.
type Reconciler ¶
Reconciler reconciles an Snapshot object
func NewStatusReportReconciler ¶
func NewStatusReportReconciler(client client.Client, logger *logr.Logger, scheme *runtime.Scheme) *Reconciler
NewStatusReportReconciler creates and returns a Reconciler.