Add runtime status commpliant with CRI
Signed-off-by: Jacek J. Łakis <jacek.lakis@intel.com>
This commit is contained in:
parent
920acd2f37
commit
0289858d21
2 changed files with 43 additions and 1 deletions
12
oci/oci.go
12
oci/oci.go
|
@ -310,3 +310,15 @@ func newPipe() (parent *os.File, child *os.File, err error) {
|
|||
}
|
||||
return os.NewFile(uintptr(fds[1]), "parent"), os.NewFile(uintptr(fds[0]), "child"), nil
|
||||
}
|
||||
|
||||
// RuntimeReady checks if the runtime is up and ready to accept
|
||||
// basic containers e.g. container only needs host network.
|
||||
func (r *Runtime) RuntimeReady() (bool, error) {
|
||||
return true, nil
|
||||
}
|
||||
|
||||
// NetworkReady checks if the runtime network is up and ready to
|
||||
// accept containers which require container network.
|
||||
func (r *Runtime) NetworkReady() (bool, error) {
|
||||
return true, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue