clusterplatform

package
v0.0.0-...-7801012 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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlatformServices operatorapi.WorkFlowCapability = "services"
)

Variables

This section is empty.

Functions

func GetActiveClusterPlatform

func GetActiveClusterPlatform(ctx context.Context, c ctrl.Client) (*operatorapi.SonataFlowClusterPlatform, error)

GetActiveClusterPlatform returns the currently installed active cluster platform.

func IsActive

IsActive determines if the given cluster platform is being used.

func IsSecondary

IsSecondary determines if the given cluster platform is marked as secondary.

Types

type Action

type Action interface {
	client.Injectable

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

	// returns true if the action can handle the cluster platform
	CanHandle(ctx context.Context, cPlatform *v08.SonataFlowClusterPlatform) bool

	// executes the handling function
	Handle(ctx context.Context, cPlatform *v08.SonataFlowClusterPlatform) error
}

Action --.

func NewInitializeAction

func NewInitializeAction() Action

NewInitializeAction returns an action that initializes the platform configuration when not provided by the user.

Jump to

Keyboard shortcuts

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