Skip to content

Commit

Permalink
Merge pull request #139 from openconfig/containerz-auto-restart
Browse files Browse the repository at this point in the history
Adds restart to containerz.StopRequest.
  • Loading branch information
tomek-US authored Nov 1, 2023
2 parents 97f5628 + fdba16a commit 718dd67
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 62 deletions.
119 changes: 67 additions & 52 deletions containerz/containerz.pb.go

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

6 changes: 5 additions & 1 deletion containerz/containerz.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import "google/rpc/status.proto";
import "types/types.proto";

option go_package = "github.com/openconfig/gnoi/containerz";
option (types.gnoi_version) = "0.1.1";
option (types.gnoi_version) = "0.1.2";

service Containerz {
// Deploy sets a container image on the target. The container is sent as
Expand Down Expand Up @@ -258,6 +258,10 @@ message StopRequest {

// If force is set, the target should attempt to forcibly kill the container.
bool force = 2;

// If restart is set, the target should start the container immediately
// after stopping it.
bool restart = 3;
}

message StopResponse {
Expand Down
51 changes: 42 additions & 9 deletions containerz/containerz_grpc.pb.go

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

0 comments on commit 718dd67

Please sign in to comment.