controller

package
Version: v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package controller provides a piped component that handles all of the not completed deployments by managing a pool of planners and schedulers. Whenever a new PENDING deployment is detected, controller spawns a new planner for deciding the deployment pipeline and update the deployment status to PLANNED. Whenever a new PLANNED deployment is detected, controller spawns a new scheduler for scheduling and running its pipeline executors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMetadataStore

func NewMetadataStore(apiClient apiClient, d *model.Deployment) *metadataStore

Types

type DeploymentController

type DeploymentController interface {
	Run(ctx context.Context) error
}

func NewController

func NewController(
	apiClient apiClient,
	gitClient gitClient,
	deploymentLister deploymentLister,
	commandLister commandLister,
	applicationLister applicationLister,
	environmentLister environmentLister,
	liveResourceLister liveResourceLister,
	notifier notifier,
	ssd sealedSecretDecrypter,
	pipedConfig *config.PipedSpec,
	appManifestsCache cache.Cache,
	gracePeriod time.Duration,
	logger *zap.Logger,
) DeploymentController

NewController creates a new instance for DeploymentController.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto