-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(plugins/k8saudit): do not return <NA> on missing field values
In the legacy implementation, list values used to include the value <NA> whenever a given field could not be extracted (see: falcosecurity/falco#1601). However, this makes the semantics of missing values ambigue and not coherent. Instead, here we just skip missing values. If a value is not found when extracted, the plugin framework is able to signal the "field is not present" info. For list values, missing values are simply skipped now. This works as expected with operators such as `in` and `intersects`, for which the <NA> string was ambiguous anyways. If a list field is accessed with an index argument, then the extracted value can either be a list with a single value (the one actually extracted at the positional index of the arg), or an empty string (which is interpreted by the framework as <NA> internally). Signed-off-by: Jason Dellaluce <[email protected]>
- Loading branch information
1 parent
e2ad7d1
commit d2cfa30
Showing
1 changed file
with
16 additions
and
32 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