Skip to content

Commit 1b6694d

Browse files
committed
adds the VM Sandbox spec to be used for V2 shims
Signed-off-by: Harsh Rawat <harshrawat@microsoft.com>
1 parent 88c818f commit 1b6694d

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

sandbox-spec-v2/vm/spec.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package vm
2+
3+
import (
4+
"github.com/containerd/typeurl/v2"
5+
specs "github.com/opencontainers/runtime-spec/specs-go"
6+
)
7+
8+
func init() {
9+
typeurl.Register(&Spec{}, "sandbox-spec-v2/vm/Spec", "Spec")
10+
}
11+
12+
// Spec holds the subset of PodSandboxConfig that the VM sandbox
13+
// implementation needs.
14+
type Spec struct {
15+
// Unstructured key-value map that may be set by the kubelet to store and
16+
// retrieve arbitrary metadata.
17+
Annotations map[string]string `json:"annotations,omitempty"`
18+
19+
// Devices holds Windows devices that should be assigned to the sandbox VM
20+
// at boot time.
21+
Devices []specs.WindowsDevice `json:"devices,omitempty"`
22+
}

0 commit comments

Comments
 (0)