Skip to content

Commit 36a6efa

Browse files
committed
Schema changes inline with HCS
Signed-off-by: Harsh Rawat <[email protected]>
1 parent 6f6cae7 commit 36a6efa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/hcs/schema2/container.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ type Container struct {
3434

3535
AdditionalDeviceNamespace *ContainerDefinitionDevice `json:"AdditionalDeviceNamespace,omitempty"`
3636

37-
ContainerType string `json:"ContainerType,omitempty"`
37+
IsolationType string `json:"IsolationType,omitempty"`
3838
}

internal/hcsoci/hcsdoc_wcow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ func createWindowsContainerDocument(ctx context.Context, coi *createOptionsInter
493493
}
494494

495495
if oci.IsIsolatedJobContainer(coi.Spec) {
496-
v2Container.ContainerType = "HostProcess"
496+
v2Container.IsolationType = "HostProcess"
497497

498498
// If the customer specified a custom rootfs path then use that instead of default c:\hpc.
499499
if customRootFsPath, ok := coi.Spec.Annotations[annotations.HostProcessRootfsLocation]; ok {

0 commit comments

Comments
 (0)