scenario

package
v0.0.0-...-f6f9c28 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 Release.

func NewAdapter

func NewAdapter(application *applicationapiv1alpha1.Application, scenario *v1beta2.IntegrationTestScenario, logger h.IntegrationLogger, loader loader.ObjectLoader, client client.Client,
	context context.Context) *Adapter

NewAdapter creates and returns an Adapter instance.

func (*Adapter) EnsureCreatedScenarioIsValid

func (a *Adapter) EnsureCreatedScenarioIsValid() (controller.OperationResult, error)

EnsureCreatedScenarioIsValid is an operation that ensures created IntegrationTestScenario is valid in case it is, set its owner reference

func (*Adapter) EnsureDeletedScenarioResourcesAreCleanedUp

func (a *Adapter) EnsureDeletedScenarioResourcesAreCleanedUp() (controller.OperationResult, error)

EnsureDeletedScenarioResourcesAreCleanedUp is an operation that ensures that all resources related to the deleted IntegrationTestScenario are cleaned up.

type AdapterInterface

type AdapterInterface interface {
	EnsureCreatedScenarioIsValid() (controller.OperationResult, error)
	EnsureDeletedScenarioResourcesAreCleanedUp() (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 scenario object

func NewScenarioReconciler

func NewScenarioReconciler(client client.Client, logger *logr.Logger, scheme *runtime.Scheme) *Reconciler

NewScenarioReconciler 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