mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-16 03:54:31 +01:00
runtime: paas enablevhostuserstore annotation to hypervisor config
Fixes: #6073 Signed-off-by: zhaojizhuang <571130360@qq.com>
This commit is contained in:
@@ -469,6 +469,12 @@ func addHypervisorConfigOverrides(ocispec specs.Spec, config *vc.SandboxConfig,
|
|||||||
config.HypervisorConfig.VhostUserStorePath = value
|
config.HypervisorConfig.VhostUserStorePath = value
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := newAnnotationConfiguration(ocispec, vcAnnotations.EnableVhostUserStore).setBool(func(enable bool) {
|
||||||
|
config.HypervisorConfig.EnableVhostUserStore = enable
|
||||||
|
}); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
if value, ok := ocispec.Annotations[vcAnnotations.GuestHookPath]; ok {
|
if value, ok := ocispec.Annotations[vcAnnotations.GuestHookPath]; ok {
|
||||||
if value != "" {
|
if value != "" {
|
||||||
config.HypervisorConfig.GuestHookPath = value
|
config.HypervisorConfig.GuestHookPath = value
|
||||||
|
|||||||
Reference in New Issue
Block a user