This repository has been archived by the owner on May 12, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
katautils: Use config paths set during the build
When building kata runtime packagers can simply do something like `make CONFDIR=/usr/share/kata-containers/defaults` and it'll make runtime understand that `/usr/share/defaults/kata-containers/` shouldn't be used as `defaultRuntimeConfiguration` and, instead, runtime will use whatever as passed to `make` during build time. This is a quite common approach, mainly for distros, as there's no perfect agreement on directory layout and whatnot. Kwowing that, let's also make `containerd-shim-kata-v2`, which reads the configurations from `pkg/katautils/config-settings.go`, to have a similar behaviour as `runtime` and respect a "build-time" configured `defaultRuntimeConfiguration` and `defaultSysConfRuntimeConfiguration` paths. Fixes: #2610 Signed-off-by: Fabiano Fidêncio <[email protected]>
- Loading branch information