Skip to content

Commit

Permalink
Add comment code
Browse files Browse the repository at this point in the history
Signed-off-by: khanhtc1202 <[email protected]>
  • Loading branch information
khanhtc1202 committed Jul 21, 2024
1 parent c843c20 commit 331dece
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/app/pipedv1/controller/planner.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,14 @@ func (p *planner) Run(ctx context.Context) error {
return p.reportDeploymentPlanned(ctx, out)

Check warning on line 210 in pkg/app/pipedv1/controller/planner.go

View check run for this annotation

Codecov / codecov/patch

pkg/app/pipedv1/controller/planner.go#L209-L210

Added lines #L209 - L210 were not covered by tests
}

// buildPlan builds the deployment plan.
// The strategy determination logic is based on the following order:
// - Direct trigger via web console
// - Force quick sync if there is no pipeline specified
// - Force pipeline if the `spec.planner.alwaysUsePipeline` was configured
// - CommitMatcher ensure pipeline/quick sync based on the commit message
// - Force quick sync if there is no previous deployment (aka. this is the first deploy)
// - Based on PlannerService.DetermineStrategy returned by plugins
func (p *planner) buildPlan(ctx context.Context, targetDS *deploysource.DeploySource) (*plannerOutput, error) {
out := &plannerOutput{}

Expand Down

0 comments on commit 331dece

Please sign in to comment.