Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComponentCreatedPredicate ¶
ComponentCreatedPredicate returns a predicate which filters out only components that are the result of a create event
func ComponentDeletedPredicate ¶
ComponentDeletedPredicate returns a predicate which filters out only components that have been marked for deletion. This is achieved by watching updates to components with an update to the components DeletionTimestamp has been updated
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter holds the objects needed to reconcile a integration PipelineRun.
func NewAdapter ¶
func NewAdapter(context context.Context, component *applicationapiv1alpha1.Component, application *applicationapiv1alpha1.Application, logger h.IntegrationLogger, loader loader.ObjectLoader, client client.Client, ) *Adapter
NewAdapter creates and returns an Adapter instance.
func (*Adapter) EnsureComponentHasFinalizer ¶
func (a *Adapter) EnsureComponentHasFinalizer() (controller.OperationResult, error)
EnsureComponentHasFinalizer is an operation that will ensure components that have been created are assigned a finalizer
func (*Adapter) EnsureComponentIsCleanedUp ¶
func (a *Adapter) EnsureComponentIsCleanedUp() (controller.OperationResult, error)
EnsureComponentIsCleanedUp is an operation that will ensure components marked for deletion have a snapshot created without said component
type AdapterInterface ¶
type AdapterInterface interface { EnsureComponentHasFinalizer() (controller.OperationResult, error) EnsureComponentIsCleanedUp() (controller.OperationResult, error) }
AdapterInterface is an interface defining all the operations that should be defined in an Integration adapter.
type Reconciler ¶
Reconciler reconciles a component object
func NewComponentReconciler ¶
func NewComponentReconciler(client client.Client, logger *logr.Logger, scheme *runtime.Scheme) *Reconciler
NewComponentReconciler creates and returns a Reconciler.