Conversation
Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
|
|
||
| // buildPipelineStagesWithSDK builds the pipeline stages with the given SDK stages. | ||
| // TODO: Rename this function to buildPipelineStages after removing the old one. | ||
| func buildPipelineStagesWithSDK(stages []sdk.StageConfig, autoRollback bool) []sdk.PipelineStage { |
There was a problem hiding this comment.
reference implementation
pipecd/pkg/app/pipedv1/plugin/kubernetes/deployment/pipeline.go
Lines 157 to 199 in 38a0086
| } | ||
| } | ||
|
|
||
| func Test_buildPipelineStagesWithSDK(t *testing.T) { |
There was a problem hiding this comment.
reference implementation
pipecd/pkg/app/pipedv1/plugin/kubernetes/deployment/pipeline_test.go
Lines 91 to 200 in 38a0086
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5672 +/- ##
==========================================
+ Coverage 25.56% 25.60% +0.03%
==========================================
Files 478 478
Lines 51280 51307 +27
==========================================
+ Hits 13110 13135 +25
- Misses 37165 37167 +2
Partials 1005 1005 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Warashi
left a comment
There was a problem hiding this comment.
Thank you!
I commented on nits
| s, _ := GetPredefinedStage(PredefinedStageRollback) | ||
| // we copy the predefined stage to avoid modifying the original one. | ||
| out = append(out, sdk.PipelineStage{ | ||
| Name: s.GetName(), |
There was a problem hiding this comment.
The s is used only here, so can we replace this with string(StageK8sRollback)?
There was a problem hiding this comment.
OK, fixed on d0fd69f
Also, I used StageK8sRollback.String() method.
Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
What this PR does:
I implemented k8s BuildPipelineSync by using SDK.
Why we need it:
We want to implement plugins with SDK.
Which issue(s) this PR fixes:
Part of #4980 #5006
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: