builder

package
v1.44.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ConfigMapName is the default name for the Builder ConfigMap name
	ConfigMapName = "sonataflow-operator-builder-config"
)

Variables

This section is empty.

Functions

func GetCommonConfigMap

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

GetCommonConfigMap retrieves the config map with the builder common configuration information

Types

type BuildManager added in v1.40.0

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

func NewBuildManager added in v1.40.0

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

type SonataFlowBuildManager added in v1.40.0

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 added in v1.40.0

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