Documentation
¶
Index ¶
- Constants
- type Plugin
- func (p *Plugin) BuildPipelineSyncStages(ctx context.Context, _ *sdk.ConfigNone, ...) (*sdk.BuildPipelineSyncStagesResponse, error)
- func (p *Plugin) BuildQuickSyncStages(ctx context.Context, _ *sdk.ConfigNone, input *sdk.BuildQuickSyncStagesInput) (*sdk.BuildQuickSyncStagesResponse, error)
- func (p *Plugin) DetermineStrategy(ctx context.Context, _ *sdk.ConfigNone, input *sdk.DetermineStrategyInput) (*sdk.DetermineStrategyResponse, error)
- func (p *Plugin) DetermineVersions(ctx context.Context, _ *sdk.ConfigNone, input *sdk.DetermineVersionsInput) (*sdk.DetermineVersionsResponse, error)
- func (p *Plugin) ExecuteStage(ctx context.Context, _ *sdk.ConfigNone, ...) (*sdk.ExecuteStageResponse, error)
- func (p *Plugin) FetchDefinedStages() []string
- func (p *Plugin) Name() string
- func (p *Plugin) Version() string
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
func (p *Plugin) BuildPipelineSyncStages(ctx context.Context, _ *sdk.ConfigNone, input *sdk.BuildPipelineSyncStagesInput) (*sdk.BuildPipelineSyncStagesResponse, error)
BuildPipelineSyncStages returns the stages for the pipeline sync strategy.
func (*Plugin) BuildQuickSyncStages ¶ added in v0.51.0
func (p *Plugin) BuildQuickSyncStages(ctx context.Context, _ *sdk.ConfigNone, input *sdk.BuildQuickSyncStagesInput) (*sdk.BuildQuickSyncStagesResponse, error)
BuildQuickSyncStages returns the stages for the quick sync strategy.
func (*Plugin) DetermineStrategy ¶ added in v0.51.0
func (p *Plugin) DetermineStrategy(ctx context.Context, _ *sdk.ConfigNone, input *sdk.DetermineStrategyInput) (*sdk.DetermineStrategyResponse, error)
DetermineStrategy determines the strategy for the deployment.
func (*Plugin) DetermineVersions ¶ added in v0.51.0
func (p *Plugin) DetermineVersions(ctx context.Context, _ *sdk.ConfigNone, input *sdk.DetermineVersionsInput) (*sdk.DetermineVersionsResponse, error)
DetermineVersions determines the versions of the application.
func (*Plugin) ExecuteStage ¶ added in v0.51.0
func (p *Plugin) ExecuteStage(ctx context.Context, _ *sdk.ConfigNone, dts []*sdk.DeployTarget[kubeconfig.KubernetesDeployTargetConfig], input *sdk.ExecuteStageInput) (*sdk.ExecuteStageResponse, error)
ExecuteStage executes the stage.
func (*Plugin) FetchDefinedStages ¶ added in v0.51.0
FetchDefinedStages returns the defined stages for this plugin.
Click to show internal directories.
Click to hide internal directories.