You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We aren't consuming this yet, but these pkg/hooks changes lay the
groundwork for future libpod changes to support post-exit hooks [1,2].
[1]: #730
[2]: opencontainers/runc#1797
Signed-off-by: W. Trevor King <[email protected]>
Closes: #758
Approved by: rhatdan
Copy file name to clipboardExpand all lines: pkg/hooks/README.md
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Each JSON file should contain an object with the following properties:
44
44
Entries MUST be [POSIX extended regular expressions][POSIX-ERE].
45
45
***`hasBindMounts`** (OPTIONAL, boolean) If `hasBindMounts` is true and the caller requested host-to-container bind mounts (beyond those that CRI-O or libpod use by default), this condition matches.
46
46
***`stages`** (REQUIRED, array of strings) Stages when the hook MUST be injected.
47
-
Entries MUST be chosen from the 1.0.1 OCI Runtime Specification [hook stages][spec-hooks].
47
+
Entries MUST be chosen from the 1.0.1 OCI Runtime Specification [hook stages][spec-hooks] or from extention stages supported by the package consumer.
48
48
49
49
If *all* of the conditions set in `when` match, then the `hook` MUST be injected for the stages set in `stages`.
50
50
@@ -114,10 +114,7 @@ Previous versions of CRI-O and libpod supported the 0.1.0 hook schema:
114
114
The injected hook's [`args`][spec-hooks] is `hook` with `arguments` appended.
115
115
***`stages`** (REQUIRED, array of strings) Stages when the hook MUST be injected.
116
116
`stage` is an allowed synonym for this property, but you MUST NOT set both `stages` and `stage`.
117
-
Entries MUST be chosen from:
118
-
***`prestart`**, to inject [pre-start][].
119
-
***`poststart`**, to inject [post-start][].
120
-
***`poststop`**, to inject [post-stop][].
117
+
Entries MUST be chosen from the 1.0.1 OCI Runtime Specification [hook stages][spec-hooks] or from extention stages supported by the package consumer.
121
118
***`cmds`** (OPTIONAL, array of strings) The hook MUST be injected if the configured [`process.args[0]`][spec-process] matches an entry.
122
119
`cmd` is an allowed synonym for this property, but you MUST NOT set both `cmds` and `cmd`.
123
120
Entries MUST be [POSIX extended regular expressions][POSIX-ERE].
0 commit comments