Skip to content

Commit

Permalink
Update BuldPlan API for piped pluggin (#4821)
Browse files Browse the repository at this point in the history
Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
  • Loading branch information
khanhtc1202 committed Mar 12, 2024
1 parent d26ca6f commit aeb3687
Show file tree
Hide file tree
Showing 3 changed files with 140 additions and 74 deletions.
174 changes: 105 additions & 69 deletions pkg/app/pipedv1/pluggin/applicationkind/api/api.pb.go

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

28 changes: 26 additions & 2 deletions pkg/app/pipedv1/pluggin/applicationkind/api/api.pb.validate.go

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

12 changes: 9 additions & 3 deletions pkg/app/pipedv1/pluggin/applicationkind/api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,15 @@ service PlannerService {
}

message BuildPlanRequest {
// The deployment to build plan for.
model.Deployment deployment = 1 [(validate.rules).message.required = true];
string most_recent_successful_commit_hash = 2;
string working_dir = 1 [(validate.rules).string.min_len = 1];
// Last successful commit hash and config file name.
// Use to build deployment source object for last successful deployment.
string last_successful_commit_hash = 2;
string last_successful_config_file_name = 3;
// The configuration of the piped that handles the deployment.
bytes piped_config = 4 [(validate.rules).bytes.min_len = 1];
// The deployment to build a plan for.
model.Deployment deployment = 5 [(validate.rules).message.required = true];
}

message BuildPlanResponse {
Expand Down

0 comments on commit aeb3687

Please sign in to comment.