-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cache: Check allowed and denied mounts/devices for hints
Check if user has specified any allowed or denied mount or device paths when generating hints. The code first checks the deny path list and then the allowed one. The annotations could look like this: annotations: allow.topologyhints.resource-policy.nri.io/pod: |+ type: prefix paths: - /foo/bar/whitelisted-path1 - /xy-zy/another-whitelisted-path1 allow.topologyhints.resource-policy.nri.io/container.pod0c0: |+ type: glob paths: - /whitelisted-path*2 - /xy-zy/another-whitelisted-path2 deny.topologyhints.resource-policy.nri.io: |+ type: prefix paths: - /foo/bar/blacklisted-path3 deny.topologyhints.resource-policy.nri.io/pod: |+ type: glob paths: - /blacklisted-path*4 deny.topologyhints.resource-policy.nri.io/container.pod0c1: |+ type: prefix paths: - /foo/bar/blacklisted-path5 - /xy-zy/another-blacklisted-path5 Signed-off-by: Jukka Rissanen <[email protected]>
- Loading branch information
Showing
2 changed files
with
188 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters