deployment

package
v0.51.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StageK8sSync represents the state where
	// all resources should be synced with the Git state.
	StageK8sSync = "K8S_SYNC"
	// StageK8sPrimaryRollout represents the state where
	// the PRIMARY variant resources has been updated to the new version/configuration.
	StageK8sPrimaryRollout = "K8S_PRIMARY_ROLLOUT"
	// StageK8sCanaryRollout represents the state where
	// the CANARY variant resources has been rolled out with the new version/configuration.
	StageK8sCanaryRollout = "K8S_CANARY_ROLLOUT"
	// StageK8sCanaryClean represents the state where
	// the CANARY variant resources has been cleaned.
	StageK8sCanaryClean = "K8S_CANARY_CLEAN"
	// StageK8sBaselineRollout represents the state where
	// the BASELINE variant resources has been rolled out.
	StageK8sBaselineRollout = "K8S_BASELINE_ROLLOUT"
	// StageK8sBaselineClean represents the state where
	// the BASELINE variant resources has been cleaned.
	StageK8sBaselineClean = "K8S_BASELINE_CLEAN"
	// StageK8sTrafficRouting represents the state where the traffic to application
	// should be splitted as the specified percentage to PRIMARY, CANARY, BASELINE variants.
	StageK8sTrafficRouting = "K8S_TRAFFIC_ROUTING"
	// StageK8sRollback represents the state where all deployed resources should be rollbacked.
	StageK8sRollback = "K8S_ROLLBACK"
)
View Source
const (
	// StageDescriptionK8sSync represents the description of the K8sSync stage.
	StageDescriptionK8sSync = "Sync by applying all manifests"
	// StageDescriptionK8sRollback represents the description of the K8sRollback stage.
	StageDescriptionK8sRollback = "Rollback the deployment"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin added in v0.51.0

type Plugin struct {
}

Plugin implements the sdk.DeploymentPlugin interface.

func (*Plugin) BuildPipelineSyncStages added in v0.51.0

BuildPipelineSyncStages returns the stages for the pipeline sync strategy.

func (*Plugin) BuildQuickSyncStages added in v0.51.0

BuildQuickSyncStages returns the stages for the quick sync strategy.

func (*Plugin) DetermineStrategy added in v0.51.0

DetermineStrategy determines the strategy for the deployment.

func (*Plugin) DetermineVersions added in v0.51.0

DetermineVersions determines the versions of the application.

func (*Plugin) ExecuteStage added in v0.51.0

ExecuteStage executes the stage.

func (*Plugin) FetchDefinedStages added in v0.51.0

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

FetchDefinedStages returns the defined stages for this plugin.

func (*Plugin) Name added in v0.51.0

func (p *Plugin) Name() string

Name returns the name of this plugin.

func (*Plugin) Version added in v0.51.0

func (p *Plugin) Version() string

Version returns the version of this plugin.

Jump to

Keyboard shortcuts

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