Skip to content

Commit

Permalink
device-injector: clarify precedence of annotations.
Browse files Browse the repository at this point in the history
Clarify order of preference for the possible annotations.

Co-authored-by: Mike Brown <brownwm@us.ibm.com>
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
  • Loading branch information
klihub and mikebrow authored Aug 13, 2024
1 parent 4eb7075 commit 8783973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/device-injector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ be injected into `$CONTAINER_NAME`. The keys `devices.nri.io` and
without any other, container-specific device annotations. Only one of
these latter two annotations will be ever taken into account. If both are
present, `devices.nri.io/pod` is used and `devices.nri.io` is silently
ignored.
ignored, otherwise `devices.nri.io`, in the absence of additional suffix text, is processed as shorthand for the `devices.nri.io/pod` annotation. The order of precedence is `devices.nri.io/container.$CONTAINER_NAME` is used, unless not present, then `devices.nri.io/pod` followed by the `devices.nri.io` shorthand annotation.

The annotation value syntax for device injection is

Expand Down

0 comments on commit 8783973

Please sign in to comment.