fix(docker): small fixes in docker entrypoints for new driver loader.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
Federico Di Pierro 2023-12-12 09:17:26 +01:00 committed by poiana
parent e427c800f3
commit f2ebdfaf8e
3 changed files with 5 additions and 4 deletions

View File

@ -60,7 +60,7 @@ while test $# -gt 0; do
print_usage
exit 1
else
/usr/bin/falcoctl driver config "--type $1"
/usr/bin/falcoctl driver config --type $1
has_driver="true"
fi
;;

View File

@ -60,7 +60,7 @@ while test $# -gt 0; do
print_usage
exit 1
else
/usr/bin/falcoctl driver config "--type $1"
/usr/bin/falcoctl driver config --type $1
has_driver="true"
fi
;;

View File

@ -60,14 +60,15 @@ if [[ -z "${SKIP_DRIVER_LOADER}" ]]; then
has_driver=
has_opts=
for opt in "${falco_driver_loader_option_arr[@]}"
case "$1" in
do
case "$opt" in
kmod|ebpf)
if [ -n "$has_driver" ]; then
>&2 echo "Only one driver per invocation"
print_usage
exit 1
else
/usr/bin/falcoctl driver config "--type $opt"
/usr/bin/falcoctl driver config --type $opt
has_driver="true"
fi
;;