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. If the Snapshot doesn't have the freshest state of components, a composite Snapshot will be created instead and the original Snapshot will be marked as Invalid.
func (*Adapter) EnsureSnapshotTestStatusReportedToGitProvider ¶
func (a *Adapter) EnsureSnapshotTestStatusReportedToGitProvider() (controller.OperationResult, error)
EnsureSnapshotTestStatusReportedToGitProvider will ensure that integration test status including env provision and snapshotEnvironmentBinding error is reported to the git provider which (indirectly) triggered its execution.
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.