mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-09 11:58:16 +00:00
virtcontainers: honour ContainerConfig struct comment and not save Spec
Currently kata-runtime saves the Container OCI Spec even when it's not needed and a comment in `ContainerConfig struct` specifically indicates that it won't be saved to disk. Use '-' as json tag instead of '_' to indicates that `Spec` field shouldn't be saved to disk. fixes #2256 Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
parent
fea166d8eb
commit
336edf75ea
@ -252,7 +252,7 @@ type ContainerConfig struct {
|
|||||||
Resources specs.LinuxResources
|
Resources specs.LinuxResources
|
||||||
|
|
||||||
// Raw OCI specification, it won't be saved to disk.
|
// Raw OCI specification, it won't be saved to disk.
|
||||||
Spec *specs.Spec `json:"_"`
|
Spec *specs.Spec `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// valid checks that the container configuration is valid.
|
// valid checks that the container configuration is valid.
|
||||||
|
Loading…
Reference in New Issue
Block a user