-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement healthcheck for remote client #3476
Implement healthcheck for remote client #3476
Conversation
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ashley-cui, mheon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
bed0116
to
15fe82d
Compare
API.md
Outdated
<div style="background-color: #E8E8E8; padding: 15px; margin: 10px; border-radius: 10px;"> | ||
|
||
method HealthCheckRun(nameOrID: [string](https://godoc.org/builtin#string)) [string](https://godoc.org/builtin#string)</div> | ||
ealthCheckRun executes defined containter's healthcheck command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/containter's/container's/ (rogue 't')
API.md
Outdated
|
||
method HealthCheckRun(nameOrID: [string](https://godoc.org/builtin#string)) [string](https://godoc.org/builtin#string)</div> | ||
ealthCheckRun executes defined containter's healthcheck command | ||
nd returns the containter's health status. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/nd/and/
cmd/podman/varlink/io.podman.varlink
Outdated
@@ -522,6 +522,10 @@ method GetContainersByStatus(status: []string) -> (containerS: []Container) | |||
|
|||
method Top (nameOrID: string, descriptors: []string) -> (top: []string) | |||
|
|||
#HealthCheckRun executes defined containter's healthcheck command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/containter/container/
pkg/varlinkapi/containers.go
Outdated
@@ -776,3 +776,16 @@ func (i *LibpodAPI) Top(call iopodman.VarlinkCall, nameOrID string, descriptors | |||
} | |||
return call.ReplyTop(topInfo) | |||
} | |||
|
|||
//HealthCheckRun executes defined containter's healthcheck command and returns the containter's health status. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/containter/container
Does this make sense to implement? It seems like a strange use case. |
As much or as little as any other command, imho yes |
cda815f
to
99d4914
Compare
LGTM |
99d4914
to
bc5feeb
Compare
☔ The latest upstream changes (presumably #3574) made this pull request unmergeable. Please resolve the merge conflicts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, needs a rebase
bc5feeb
to
5a3638a
Compare
☔ The latest upstream changes (presumably #3143) made this pull request unmergeable. Please resolve the merge conflicts. |
5a3638a
to
fa0ca81
Compare
f12e995
to
b44083f
Compare
fc484af
to
5a3638a
Compare
b049f4c
to
2146275
Compare
☔ The latest upstream changes (presumably #3753) made this pull request unmergeable. Please resolve the merge conflicts. |
@ashley-cui Needs a rebase. |
2146275
to
19d1b06
Compare
7898e05
to
4e0d01b
Compare
Previously unimplemented. Works the same way the local one does, except its remote. Signed-off-by: Ashley Cui <[email protected]>
4e0d01b
to
8c7014f
Compare
@rhatdan tests finally okay. PTAL |
Nice work |
Previously unimplemented. Works the same way the local one does, except its remote.
Signed-off-by: Ashley Cui [email protected]