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, ...) (*sdk.DetermineStrategyResponse, error)
- func (p *Plugin) DetermineVersions(ctx context.Context, _ *sdk.ConfigNone, ...) (*sdk.DetermineVersionsResponse, error)
- func (p *Plugin) ExecuteStage(ctx context.Context, _ *sdk.ConfigNone, ...) (*sdk.ExecuteStageResponse, error)
- func (p *Plugin) FetchDefinedStages() []string
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 ¶
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 ¶
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 ¶
func (p *Plugin) DetermineStrategy(ctx context.Context, _ *sdk.ConfigNone, input *sdk.DetermineStrategyInput[kubeconfig.KubernetesApplicationSpec]) (*sdk.DetermineStrategyResponse, error)
DetermineStrategy determines the strategy for the deployment.
func (*Plugin) DetermineVersions ¶
func (p *Plugin) DetermineVersions(ctx context.Context, _ *sdk.ConfigNone, input *sdk.DetermineVersionsInput[kubeconfig.KubernetesApplicationSpec]) (*sdk.DetermineVersionsResponse, error)
DetermineVersions determines the versions of the application.
func (*Plugin) ExecuteStage ¶
func (p *Plugin) ExecuteStage(ctx context.Context, _ *sdk.ConfigNone, dts []*sdk.DeployTarget[kubeconfig.KubernetesDeployTargetConfig], input *sdk.ExecuteStageInput[kubeconfig.KubernetesApplicationSpec]) (*sdk.ExecuteStageResponse, error)
ExecuteStage executes the stage.
func (*Plugin) FetchDefinedStages ¶
FetchDefinedStages returns the defined stages for this plugin.
Click to show internal directories.
Click to hide internal directories.