Skip to content

Commit f3aa11f

Browse files
committed
Rectified the schema for custom rootfs for HCS HPCs
Signed-off-by: Harsh Rawat <[email protected]>
1 parent e1e1b82 commit f3aa11f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/hcs/schema2/storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ type Storage struct {
2020
QoS *StorageQoS `json:"QoS,omitempty"`
2121

2222
// Path to the root of the container's filesystem. This is useful in case of HostProcess containers where the container rootfs is different from C:\.
23-
ContainerRootPath string `json:"ContainerRootPath,omitempty"`
23+
PrivilegedContainerRootPath string `json:"PrivilegedContainerRootPath,omitempty"`
2424
}

internal/hcsoci/hcsdoc_wcow.go

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

497497
// If the customer specified a custom rootfs path then use that instead of default c:\hpc.
498498
if customRootFsPath, ok := coi.Spec.Annotations[annotations.HostProcessRootfsLocation]; ok {
499-
v2Container.Storage.ContainerRootPath = customRootFsPath
499+
v2Container.Storage.PrivilegedContainerRootPath = customRootFsPath
500500
}
501501
}
502502

0 commit comments

Comments
 (0)