deployitem

package
v0.104.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddControllerToManager

func AddControllerToManager(lsUncachedClient, lsCachedClient client.Client,
	logger logging.Logger,
	lsMgr manager.Manager,
	config config.DeployItemsController,
	deployItemPickupTimeout *lscore.Duration) error

func HasBeenPickedUp

func HasBeenPickedUp(di *lsv1alpha1.DeployItem) bool

func NewController

func NewController(lsUncachedClient, lsCachedClient client.Client,
	logger logging.Logger, scheme *runtime.Scheme, pickupTimeout *lscore.Duration,
	maxNumberOfWorkers int) (reconcile.Reconciler, error)

NewController creates a new deploy item controller that handles timeouts To detect pickup timeouts (when a DeployItem resource is not reconciled by any deployer within a specified timeframe), the controller checks for a timestamp annotation. It is expected that deployers remove the timestamp annotation from deploy items during reconciliation. If the timestamp annotation exists and is older than a specified duration, the controller marks the deploy item as failed. pickupTimeout is a string containing the pickup timeout duration, either as 'none' or as a duration that can be parsed by time.ParseDuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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