Documentation ¶
Index ¶
- Variables
- func ReplaceImageTagWithDigest(image, digest string) string
- type FeasibilityManager
- type TriggerService
- type TriggerServiceImpl
- func (impl *TriggerServiceImpl) CheckFeasibility(triggerRequirementRequest *bean.TriggerRequirementRequestDto) error
- func (impl *TriggerServiceImpl) ManualCdTrigger(triggerContext bean.TriggerContext, ...) (int, string, *bean4.ManifestPushTemplate, error)
- func (impl *TriggerServiceImpl) ReserveImagesGeneratedAtPlugin(customTagId int, destinationImages []string) ([]int, error)
- func (impl *TriggerServiceImpl) TriggerAutoCDOnPreStageSuccess(triggerContext bean.TriggerContext, cdPipelineId, ciArtifactId, workflowId int, ...) error
- func (impl *TriggerServiceImpl) TriggerAutomaticDeployment(request bean.TriggerRequest) error
- func (impl *TriggerServiceImpl) TriggerCD(ctx context.Context, artifact *repository3.CiArtifact, cdWorkflowId, wfrId int, ...) error
- func (impl *TriggerServiceImpl) TriggerPostStage(request bean.TriggerRequest) (*bean4.ManifestPushTemplate, error)
- func (impl *TriggerServiceImpl) TriggerPreStage(request bean.TriggerRequest) (*bean6.ManifestPushTemplate, error)
- func (impl *TriggerServiceImpl) TriggerRelease(overrideRequest *bean3.ValuesOverrideRequest, ...) (releaseNo int, manifestPushTemplate *bean4.ManifestPushTemplate, err error)
- func (impl *TriggerServiceImpl) TriggerStageForBulk(triggerRequest bean.TriggerRequest) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DevtronAppsDeployTriggerWireSet = wire.NewSet( userDeploymentRequest.WireSet, NewTriggerServiceImpl, wire.Bind(new(TriggerService), new(*TriggerServiceImpl)), )
Functions ¶
Types ¶
type FeasibilityManager ¶ added in v0.7.0
type FeasibilityManager interface {
CheckFeasibility(triggerRequirementRequest *bean.TriggerRequirementRequestDto) error
}
type TriggerService ¶
type TriggerService interface { TriggerPostStage(request bean.TriggerRequest) (*bean4.ManifestPushTemplate, error) TriggerPreStage(request bean.TriggerRequest) (*bean4.ManifestPushTemplate, error) TriggerAutoCDOnPreStageSuccess(triggerContext bean.TriggerContext, cdPipelineId, ciArtifactId, workflowId int, triggerdBy int32) error TriggerStageForBulk(triggerRequest bean.TriggerRequest) error ManualCdTrigger(triggerContext bean.TriggerContext, overrideRequest *bean3.ValuesOverrideRequest) (int, string, *bean4.ManifestPushTemplate, error) TriggerAutomaticDeployment(request bean.TriggerRequest) error TriggerRelease(overrideRequest *bean3.ValuesOverrideRequest, envDeploymentConfig *bean9.DeploymentConfig, ctx context.Context, triggeredAt time.Time, triggeredBy int32) (releaseNo int, manifestPushTemplate *bean4.ManifestPushTemplate, err error) }
type TriggerServiceImpl ¶
type TriggerServiceImpl struct { ACDConfig *argocdServer.ACDConfig K8sUtil *util5.K8sServiceImpl // contains filtered or unexported fields }
func NewTriggerServiceImpl ¶
func NewTriggerServiceImpl(logger *zap.SugaredLogger, cdWorkflowCommonService cd.CdWorkflowCommonService, gitOpsManifestPushService publish.GitOpsPushService, gitOpsConfigReadService config.GitOpsConfigReadService, argoK8sClient argocdServer.ArgoK8sClient, ACDConfig *argocdServer.ACDConfig, argoClientWrapperService argocdServer.ArgoClientWrapperService, pipelineStatusTimelineService status.PipelineStatusTimelineService, chartTemplateService util.ChartTemplateService, workflowEventPublishService out.WorkflowEventPublishService, manifestCreationService manifest.ManifestCreationService, deployedConfigurationHistoryService history.DeployedConfigurationHistoryService, argoUserService argo.ArgoUserService, pipelineStageService pipeline.PipelineStageService, globalPluginService plugin.GlobalPluginService, customTagService pipeline.CustomTagService, pluginInputVariableParser pipeline.PluginInputVariableParser, prePostCdScriptHistoryService history.PrePostCdScriptHistoryService, scopedVariableManager variables.ScopedVariableCMCSManager, cdWorkflowService pipeline.WorkflowService, imageDigestPolicyService imageDigestPolicy.ImageDigestPolicyService, userService user.UserService, gitSensorClient gitSensorClient.Client, helmAppService client2.HelmAppService, enforcerUtil rbac.EnforcerUtil, userDeploymentRequestService service.UserDeploymentRequestService, helmAppClient gRPC.HelmAppClient, eventFactory client.EventFactory, eventClient client.EventClient, envVariables *globalUtil.EnvironmentVariables, appRepository appRepository.AppRepository, ciPipelineMaterialRepository pipelineConfig.CiPipelineMaterialRepository, imageScanHistoryReadService read2.ImageScanHistoryReadService, imageScanDeployInfoReadService read2.ImageScanDeployInfoReadService, imageScanDeployInfoService security2.ImageScanDeployInfoService, pipelineRepository pipelineConfig.PipelineRepository, pipelineOverrideRepository chartConfig.PipelineOverrideRepository, manifestPushConfigRepository repository.ManifestPushConfigRepository, chartRepository chartRepoRepository.ChartRepository, envRepository repository2.EnvironmentRepository, cdWorkflowRepository pipelineConfig.CdWorkflowRepository, ciWorkflowRepository pipelineConfig.CiWorkflowRepository, ciArtifactRepository repository3.CiArtifactRepository, ciTemplateService pipeline2.CiTemplateReadService, gitMaterialReadService read.GitMaterialReadService, appLabelRepository pipelineConfig.AppLabelRepository, ciPipelineRepository pipelineConfig.CiPipelineRepository, appWorkflowRepository appWorkflow.AppWorkflowRepository, dockerArtifactStoreRepository repository4.DockerArtifactStoreRepository, imageScanService security2.ImageScanService, K8sUtil *util5.K8sServiceImpl, transactionUtilImpl *sql.TransactionUtilImpl, deploymentConfigService common.DeploymentConfigService, ciCdPipelineOrchestrator pipeline.CiCdPipelineOrchestrator, gitOperationService git.GitOperationService, attributeService attributes.AttributesService, clusterRepository repository5.ClusterRepository, ) (*TriggerServiceImpl, error)
func (*TriggerServiceImpl) CheckFeasibility ¶ added in v0.7.0
func (impl *TriggerServiceImpl) CheckFeasibility(triggerRequirementRequest *bean.TriggerRequirementRequestDto) error
func (*TriggerServiceImpl) ManualCdTrigger ¶
func (impl *TriggerServiceImpl) ManualCdTrigger(triggerContext bean.TriggerContext, overrideRequest *bean3.ValuesOverrideRequest) (int, string, *bean4.ManifestPushTemplate, error)
TODO: write a wrapper to handle auto and manual trigger
func (*TriggerServiceImpl) ReserveImagesGeneratedAtPlugin ¶
func (impl *TriggerServiceImpl) ReserveImagesGeneratedAtPlugin(customTagId int, destinationImages []string) ([]int, error)
func (*TriggerServiceImpl) TriggerAutoCDOnPreStageSuccess ¶ added in v1.0.0
func (impl *TriggerServiceImpl) TriggerAutoCDOnPreStageSuccess(triggerContext bean.TriggerContext, cdPipelineId, ciArtifactId, workflowId int, triggerdBy int32) error
func (*TriggerServiceImpl) TriggerAutomaticDeployment ¶
func (impl *TriggerServiceImpl) TriggerAutomaticDeployment(request bean.TriggerRequest) error
TODO: write a wrapper to handle auto and manual trigger
func (*TriggerServiceImpl) TriggerCD ¶
func (impl *TriggerServiceImpl) TriggerCD(ctx context.Context, artifact *repository3.CiArtifact, cdWorkflowId, wfrId int, pipeline *pipelineConfig.Pipeline, envDeploymentConfig *bean9.DeploymentConfig, triggeredAt time.Time) error
func (*TriggerServiceImpl) TriggerPostStage ¶
func (impl *TriggerServiceImpl) TriggerPostStage(request bean.TriggerRequest) (*bean4.ManifestPushTemplate, error)
func (*TriggerServiceImpl) TriggerPreStage ¶
func (impl *TriggerServiceImpl) TriggerPreStage(request bean.TriggerRequest) (*bean6.ManifestPushTemplate, error)
func (*TriggerServiceImpl) TriggerRelease ¶
func (impl *TriggerServiceImpl) TriggerRelease(overrideRequest *bean3.ValuesOverrideRequest, envDeploymentConfig *bean9.DeploymentConfig, ctx context.Context, triggeredAt time.Time, triggeredBy int32) (releaseNo int, manifestPushTemplate *bean4.ManifestPushTemplate, err error)
TriggerRelease will trigger Install/Upgrade request for Devtron App releases synchronously
func (*TriggerServiceImpl) TriggerStageForBulk ¶
func (impl *TriggerServiceImpl) TriggerStageForBulk(triggerRequest bean.TriggerRequest) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.