mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-25 19:21:53 +00:00
kata-deploy: Fix shim check for snapshotter configuration
We want to check whether the shim is part of the "plain text" shims passed to the daemonset (meaning, checking against `$SHIMS`). Before this fix we were checking against `$shims`, which is an array of shims instead of a string, resulting on a broken check. Fixes: #8732 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
a4ad12a3d1
commit
907f1ddb9e
@ -481,7 +481,7 @@ function snapshotter_handler_mapping_validation_check() {
|
|||||||
die "The snapshotter must follow the \"shim:snapshotter,shim:snapshotter,...\" format, but at least one snapshotter is empty"
|
die "The snapshotter must follow the \"shim:snapshotter,shim:snapshotter,...\" format, but at least one snapshotter is empty"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -q " $shim " <<< " $shims "; then
|
if ! grep -q " $shim " <<< " $SHIMS "; then
|
||||||
die "\"$shim\" is not part of \"$SHIMS\""
|
die "\"$shim\" is not part of \"$SHIMS\""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user