runtime-rs: Update list of config paths to check

Update the `DEFAULT_RUNTIME_CONFIGURATIONS` list to include a number of
rust runtime specific paths to try to load before checking the
"traditional" (golang) runtime configuration paths.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt
2023-11-14 17:25:05 +00:00
committed by Fabiano Fidêncio
parent 89ef464b7c
commit b86ab5aa21

View File

@@ -14,6 +14,12 @@ use lazy_static::lazy_static;
lazy_static! {
/// Default configuration file paths, vendor may extend the list
pub static ref DEFAULT_RUNTIME_CONFIGURATIONS: Vec::<&'static str> = vec![
// The rust runtime specific paths
"/etc/kata-containers/runtime-rs/configuration.toml",
"/usr/share/defaults/kata-containers/runtime-rs/configuration.toml",
"/opt/kata/share/defaults/kata-containers/runtime-rs/configuration.toml",
// The traditional golang paths
"/etc/kata-containers/configuration.toml",
"/usr/share/defaults/kata-containers/configuration.toml",
"/opt/kata/share/defaults/kata-containers/configuration.toml",