mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-27 15:57:09 +00:00
runtime: paas enablevhostuserstore annotation to hypervisor config
Fixes: #6073 Signed-off-by: zhaojizhuang <571130360@qq.com>
This commit is contained in:
parent
2b4b825228
commit
cf1bae3521
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user