builder

package
v0.0.0-...-8540d8e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBuilderConfigMap

func GetBuilderConfigMap(client client.Client, fallbackNS string) (*corev1.ConfigMap, error)

GetBuilderConfigMap retrieves the config map with the builder common configuration information

Types

type BuildManager

type BuildManager interface {
	Schedule(build *operatorapi.SonataFlowBuild) error
	Reconcile(build *operatorapi.SonataFlowBuild) error
}

func NewBuildManager

func NewBuildManager(ctx context.Context, client client.Client, cliConfig *rest.Config, targetName, targetNamespace string) (BuildManager, error)

type SonataFlowBuildManager

type SonataFlowBuildManager interface {
	// GetOrCreateBuild gets or creates a new instance of SonataFlowBuild for the given SonataFlow.
	//
	// Only one build is allowed per workflow instance.
	GetOrCreateBuild(workflow *operatorapi.SonataFlow) (*operatorapi.SonataFlowBuild, error)
	// MarkToRestart tell the controller to restart this build in the next iteration
	MarkToRestart(build *operatorapi.SonataFlowBuild) error
}

func NewSonataFlowBuildManager

func NewSonataFlowBuildManager(ctx context.Context, client client.Client) SonataFlowBuildManager

NewSonataFlowBuildManager entry point to manage SonataFlowBuild instances. Won't start a build, but once it creates a new instance, the controller will take place and start the build in the cluster context.

Jump to

Keyboard shortcuts

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