Skip to content

Commit

Permalink
Automate API needs to handle sync status (#6860)
Browse files Browse the repository at this point in the history
* Sync status

Signed-off-by: Pappu Kumar <pappu.kumar@progress.com>

* Sync migration time

Signed-off-by: Pappu Kumar <pappu.kumar@progress.com>
  • Loading branch information
GorillaGigabytes authored and vinay033 committed Apr 11, 2022
1 parent f725ae6 commit 62cb064
Show file tree
Hide file tree
Showing 12 changed files with 930 additions and 207 deletions.
5 changes: 5 additions & 0 deletions api/external/infra_proxy/infra_proxy.swagger.json

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

193 changes: 106 additions & 87 deletions api/external/infra_proxy/response/servers.pb.go

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions api/external/infra_proxy/response/servers.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ syntax = "proto3";
package chef.automate.api.infra_proxy.response;
option go_package = "github.com/chef/automate/api/external/infra_proxy/response";

import "google/protobuf/timestamp.proto";

message CreateServer {
// Chef Infra Server.
Server server = 1;
Expand Down Expand Up @@ -45,6 +47,8 @@ message Server {
string migration_type =8;
//Migration Id for active Chef Infra server migration
string migration_status =9;
// Last successfull migration or last sync status
google.protobuf.Timestamp last_migration_time = 10;
}

message GetServerStatus {
Expand Down
Loading

0 comments on commit 62cb064

Please sign in to comment.