Add default response of DetermineStrategy() of DeploymentPlugin#5929
Conversation
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5929 +/- ##
==========================================
- Coverage 28.46% 28.45% -0.01%
==========================================
Files 520 520
Lines 56408 56416 +8
==========================================
Hits 16055 16055
- Misses 39087 39095 +8
Partials 1266 1266
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@t-kikuc |
|
@ffjlabo In this PR, even if |
|
@t-kikuc |
| return nil, status.Errorf(codes.Internal, "failed to determine strategy: %v", err) | ||
| } | ||
| if response == nil { | ||
| // when a plugin does not have specific logic. |
There was a problem hiding this comment.
| // when a plugin does not have specific logic. | |
| // If the plugin does not have specific logic to determine strategy | |
| // returns PipelineSync as default. |
nits, the comment should be clear, not half-phase, to reduce confusion.
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
|
@ffjlablo |
What this PR does:
DetermineStrategy()returns PipelineSync by defaultDetermineStrategy()cf. pipedv0 uses pipelineSync by default.
pipecd/pkg/app/piped/planner/terraform/terraform.go
Lines 103 to 115 in a19732a
Why we need it:
Which issue(s) this PR fixes:
Part of #5530
Does this PR introduce a user-facing change?: