Clarify the semantics of hook elements
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
parent
4066d59d29
commit
48049d2341
|
@ -43,7 +43,7 @@ If a hook returns a non-zero exit code, then an error is logged and the remainin
|
||||||
"prestart": [
|
"prestart": [
|
||||||
{
|
{
|
||||||
"path": "/usr/bin/fix-mounts",
|
"path": "/usr/bin/fix-mounts",
|
||||||
"args": ["arg1", "arg2"],
|
"args": ["fix-mounts", "arg1", "arg2"],
|
||||||
"env": [ "key1=value1"]
|
"env": [ "key1=value1"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -58,7 +58,7 @@ If a hook returns a non-zero exit code, then an error is logged and the remainin
|
||||||
"poststop": [
|
"poststop": [
|
||||||
{
|
{
|
||||||
"path": "/usr/sbin/cleanup.sh",
|
"path": "/usr/sbin/cleanup.sh",
|
||||||
"args": ["-f"]
|
"args": ["cleanup.sh", "-f"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -66,6 +66,7 @@ If a hook returns a non-zero exit code, then an error is logged and the remainin
|
||||||
|
|
||||||
`path` is required for a hook.
|
`path` is required for a hook.
|
||||||
`args` and `env` are optional.
|
`args` and `env` are optional.
|
||||||
|
The semantics are the same as `Path`, `Args` and `Env` in [golang Cmd](https://golang.org/pkg/os/exec/#Cmd).
|
||||||
|
|
||||||
## Mount Configuration
|
## Mount Configuration
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue