mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-31 09:26:52 +00:00 
			
		
		
		
	kata-deploy: Pass the config path to CRI-O
As we're already doing for containerd, let's also pass the configuration path to CRI-O, as all the supported CRI-O versions do support this configuration option. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
		| @@ -129,12 +129,15 @@ function cleanup_different_shims_base() { | |||||||
|  |  | ||||||
| function configure_crio_runtime() { | function configure_crio_runtime() { | ||||||
| 	local runtime="kata" | 	local runtime="kata" | ||||||
|  | 	local configuration="configuration" | ||||||
| 	if [ -n "${1-}" ]; then | 	if [ -n "${1-}" ]; then | ||||||
| 		runtime+="-$1" | 		runtime+="-$1" | ||||||
|  | 		configuration+="-$1" | ||||||
| 	fi | 	fi | ||||||
|  |  | ||||||
| 	local kata_path="/usr/local/bin/containerd-shim-${runtime}-v2" | 	local kata_path="/usr/local/bin/containerd-shim-${runtime}-v2" | ||||||
| 	local kata_conf="crio.runtime.runtimes.${runtime}" | 	local kata_conf="crio.runtime.runtimes.${runtime}" | ||||||
|  | 	local kata_config_path="/opt/kata/share/defaults/kata-containers/$configuration.toml" | ||||||
|  |  | ||||||
| 	cat <<EOF | tee -a "$crio_drop_in_conf_file" | 	cat <<EOF | tee -a "$crio_drop_in_conf_file" | ||||||
|  |  | ||||||
| @@ -143,6 +146,7 @@ function configure_crio_runtime() { | |||||||
| 	runtime_path = "${kata_path}" | 	runtime_path = "${kata_path}" | ||||||
| 	runtime_type = "vm" | 	runtime_type = "vm" | ||||||
| 	runtime_root = "/run/vc" | 	runtime_root = "/run/vc" | ||||||
|  | 	runtime_config_path = "${kata_config_path}" | ||||||
| 	privileged_without_host_devices = true | 	privileged_without_host_devices = true | ||||||
| EOF | EOF | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user