Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplicationManagedProperties ¶
func ApplicationManagedProperties(workflow *operatorapi.SonataFlow, platform *operatorapi.SonataFlowPlatform) (string, error)
ApplicationManagedProperties immutable default application properties that can be used with any workflow based on Quarkus. Alias for NewManagedPropertyHandler(workflow).Build()
Types ¶
type ManagedPropertyHandler ¶
type ManagedPropertyHandler interface { WithUserProperties(userProperties string) ManagedPropertyHandler WithServiceDiscovery(ctx context.Context, catalog discovery.ServiceCatalog) ManagedPropertyHandler Build() string }
func NewManagedPropertyHandler ¶
func NewManagedPropertyHandler(workflow *operatorapi.SonataFlow, platform *operatorapi.SonataFlowPlatform) (ManagedPropertyHandler, error)
NewManagedPropertyHandler creates a property handler for a given workflow to execute in the provided platform. This handler is intended to build the managed application properties required by the workflow to execute properly together with the user properties defined in the user-managed ConfigMap. Note that the produced properties might vary depending on the platform, for example, if the job service managed by the platform have a particular set of properties will be added, etc. By default, the following properties are incorporated: The set of immutable properties provided by the operator. (user can never change) The set of defaultManagedProperties that are provided by the operator, and that the user cannot overwrite even if it changes the user-managed ConfigMap. This set includes for example the required properties to connect with the data index and the job service when any of these services are managed by the platform.