integration

package
v0.0.0-...-ded4385 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = log.Log.WithName("controller").WithName("integration")

Log --

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new Integration Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

func HasMatchingTraits

func HasMatchingTraits(kit *v1.IntegrationKit, integration *v1.Integration) (bool, error)

HasMatchingTraits compare traits defined on kit against those defined on integration.

func LookupKitForIntegration

func LookupKitForIntegration(ctx context.Context, c k8sclient.Reader, integration *v1.Integration) (*v1.IntegrationKit, error)

LookupKitForIntegration --

Types

type Action

type Action interface {
	client.Injectable
	log.Injectable

	// a user friendly name for the action
	Name() string

	// returns true if the action can handle the integration
	CanHandle(integration *v1.Integration) bool

	// executes the handling function
	Handle(ctx context.Context, integration *v1.Integration) (*v1.Integration, error)
}

Action --

func NewBuildKitAction

func NewBuildKitAction() Action

NewBuildKitAction create an action that handles integration kit build

func NewDeployAction

func NewDeployAction() Action

NewDeployAction create an action that handles integration deploy

func NewErrorAction

func NewErrorAction() Action

NewErrorAction creates a new error action for an integration

func NewInitializeAction

func NewInitializeAction() Action

NewInitializeAction creates a new initialize action

func NewMonitorAction

func NewMonitorAction() Action

NewMonitorAction creates a new monitoring action for an integration

func NewNoopAction

func NewNoopAction() Action

NewNoopAction is used to put an integration resource out of the operator lifecycle.

The resource must be updated by an external entity (e.g. the kamel CLI) to a new state when ready to start a new workflow.

func NewPlatformSetupAction

func NewPlatformSetupAction() Action

NewPlatformSetupAction creates a new platform-setup action

func NewWaitForBindingsAction

func NewWaitForBindingsAction() Action

NewWaitForBindingsAction waits until Bindings are available and ready to be used by Integrations.

Jump to

Keyboard shortcuts

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