Skip to content

Commit

Permalink
Update plugin deployment api (#5110)
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhtc1202 authored Aug 5, 2024
1 parent 9ec2503 commit f5dcaa4
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 77 deletions.
183 changes: 109 additions & 74 deletions pkg/plugin/api/v1alpha1/deployment/api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 16 additions & 1 deletion pkg/plugin/api/v1alpha1/deployment/api.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions pkg/plugin/api/v1alpha1/deployment/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,19 @@ message DetermineStrategyResponse {

message BuildStagesRequest {
message StageConfig {
// The stage identifier.
// If it's not set, plugin should set it under pattern:
// `pluginname-stage-index`.
string id = 1;
// The stage name.
string name = 1;
string name = 2 [(validate.rules).string.min_len = 1];
// The stage description.
string desc = 3;
// The stage timeout.
// It should be a duration string (aka. 1m/10s/...).
string timeout = 4;
// The configuration of the stage.
bytes config = 2;
bytes config = 5;
}
repeated StageConfig stages = 1;
}
Expand Down

0 comments on commit f5dcaa4

Please sign in to comment.