Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new option to run all deployments with specified pipeline #2470

Merged
merged 3 commits into from
Sep 13, 2021

Conversation

nghialv
Copy link
Member

@nghialv nghialv commented Sep 13, 2021

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 32.38%. This pull request decreases coverage by -0.01%.

File Function Base Head Diff
pkg/app/piped/planner/kubernetes/kubernetes.go Planner.Plan 0.00% 0.00% +0.00%

@nakabonne
Copy link
Member

nice
/lgtm

@@ -125,6 +125,14 @@ func (p *Planner) Plan(ctx context.Context, in planner.Input) (out planner.Outpu
return
}

// Force to use pipeline when the alwaysUsePipeline field was configured.
if cfg.Planner.AlwaysUsePipeline {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add TODO or something in planner for other kinds of deployment we're supporting? Since this configuration is added as GenericDeploymentSpec config.

Copy link
Member Author

@nghialv nghialv Sep 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have checked all other kinds and actually we don't need to have any additional updates for them.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the second thought, let me add this part for them too. For good consistency.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeh, that's what I worried about. Since this configuration may lead users to think like they have to add this line in their configuration for all kinds of applications.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have just applied this new field to all application kinds. PTAL.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@nghialv
Copy link
Member Author

nghialv commented Sep 13, 2021

/hold

@nghialv
Copy link
Member Author

nghialv commented Sep 13, 2021

/hold cancel

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 32.37%. This pull request decreases coverage by -0.03%.

File Function Base Head Diff
pkg/app/piped/planner/ecs/ecs.go Planner.Plan 0.00% 0.00% +0.00%
pkg/app/piped/planner/kubernetes/kubernetes.go Planner.Plan 0.00% 0.00% +0.00%

@nakabonne
Copy link
Member

/lgtm

@khanhtc1202
Copy link
Member

Nice
/approve

@pipecd-bot
Copy link
Collaborator

APPROVE

This pull request is APPROVED by khanhtc1202.

Approvers can cancel the approval by writing /approve cancel in a comment. Any additional commits also will change this pull request to be not-approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants