statusreport

package
v0.0.0-...-6a2cf72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const SnapshotRetryTimeout = time.Duration(3 * time.Hour)

Variables

This section is empty.

Functions

func SetupController

func SetupController(manager ctrl.Manager, log *logr.Logger) error

SetupController creates a new Integration controller and adds it to the Manager.

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

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

type Reconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

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.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL