spiegel_podman/pkg
W. Trevor King c45d4c6d5c hooks: Fix monitoring of multiple directories
This isn't an issue with podman, which will only ever use one
directory.  But CRI-O generally uses two directories, and we want to
make sure that changes to the fallback directory are not clobbering
hooks configured in the override directory.  More background in [1].

I've split the handling into a single-directory block and a
multiple-directory block so we don't waste time polling the filesystem
for single-directory removals.

I'm using the single-directory block for the the zero-directory case
as well.  Managers with zero directories should not be receiving
fsnotify events, so I don't think it really matters which block
handles them.  If we want to handle this case robustly (because we're
concerned about something in the hook package adjusted the private
.directories property on the fly?), then we'll probably want to add an
explicit zero-directory block in future work.

[1]: https://github.com/kubernetes-incubator/cri-o/pull/1470

Signed-off-by: W. Trevor King <wking@tremily.us>

Closes: #757
Approved by: rhatdan
2018-05-17 22:39:13 +00:00
..
annotations Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
chrootuser chrootuser: default to GID 0 when given a numeric --user 2018-05-17 17:05:44 +00:00
hooks hooks: Fix monitoring of multiple directories 2018-05-17 22:39:13 +00:00
inspect fix typos in the inspect json structs 2018-05-02 18:02:22 +00:00
kubeutils Remove dependency on kubernetes 2018-03-27 21:55:33 +00:00
registrar Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
registries regression: tls verify should be set on registries.conf if insecure 2018-04-18 14:07:59 +00:00
secrets podman, userNS: configure an intermediate mount namespace 2018-05-04 17:15:55 +00:00
util Begin wiring in USERNS Support into podman 2018-05-04 17:15:55 +00:00
varlinkapi implement varlink commit 2018-05-15 17:08:10 +00:00