deployment

package
v0.0.0-...-91c6112 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StageK8sMultiSync represents the state where
	// all resources should be synced with the Git state.
	StageK8sMultiSync = "K8S_MULTI_SYNC"
	// StageK8sMultiRollback represents the state where all deployed resources should be rollbacked.
	StageK8sMultiRollback = "K8S_MULTI_ROLLBACK"
	// StageK8sMultiCanaryRollout represents the state where the new version is deployed as CANARY to all targets.
	StageK8sMultiCanaryRollout = "K8S_CANARY_ROLLOUT"
	// StageK8sMultiCanaryClean represents the state where all canary resources should be removed.
	StageK8sMultiCanaryClean = "K8S_CANARY_CLEAN"
	// StageK8sMultiPrimaryRollout represents the state where the new version is promoted as PRIMARY to all targets.
	StageK8sMultiPrimaryRollout = "K8S_PRIMARY_ROLLOUT"
	// StageK8sMultiBaselineRollout represents the state where the current version is deployed as BASELINE to all targets.
	StageK8sMultiBaselineRollout = "K8S_BASELINE_ROLLOUT"
	// StageK8sMultiBaselineClean represents the state where all baseline resources should be removed.
	StageK8sMultiBaselineClean = "K8S_BASELINE_CLEAN"
)
View Source
const (
	// StageDescriptionK8sMultiSync represents the description of the K8sSync stage.
	StageDescriptionK8sMultiSync = "Sync by applying all manifests"
	// StageDescriptionK8sMultiRollback represents the description of the K8sRollback stage.
	StageDescriptionK8sMultiRollback = "Rollback the deployment"
	// StageDescriptionK8sMultiCanaryRollout represents the description of the K8sCanaryRollout stage.
	StageDescriptionK8sMultiCanaryRollout = "Rollout the new version as CANARY to all targets"
	// StageDescriptionK8sMultiCanaryClean represents the description of the K8sCanaryClean stage.
	StageDescriptionK8sMultiCanaryClean = "Remove all canary resources"
	// StageDescriptionK8sMultiPrimaryRollout represents the description of the K8sPrimaryRollout stage.
	StageDescriptionK8sMultiPrimaryRollout = "Rollout the new version as PRIMARY to all targets"
	// StageDescriptionK8sMultiBaselineRollout represents the description of the K8sBaselineRollout stage.
	StageDescriptionK8sMultiBaselineRollout = "Rollout the current version as BASELINE to all targets"
	// StageDescriptionK8sMultiBaselineClean represents the description of the K8sBaselineClean stage.
	StageDescriptionK8sMultiBaselineClean = "Remove all baseline resources"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
}

Plugin implements the sdk.DeploymentPlugin interface.

func (*Plugin) BuildPipelineSyncStages

BuildPipelineSyncStages returns the stages for the pipeline sync strategy.

func (*Plugin) BuildQuickSyncStages

BuildQuickSyncStages returns the stages for the quick sync strategy.

func (*Plugin) DetermineStrategy

DetermineStrategy determines the strategy for the deployment.

func (*Plugin) DetermineVersions

DetermineVersions determines the versions of the application.

func (*Plugin) FetchDefinedStages

func (p *Plugin) FetchDefinedStages() []string

FetchDefinedStages returns the defined stages for this plugin.

Jump to

Keyboard shortcuts

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