Skip to content

Commit 33b6293

Browse files
committed
[release/1.7]: HPC working directory fix in pkg/cri/server code
Change in 989f1ec assumed a single place (pkg/cri/sbserver) where this had to be fixed. Commit in main branch for reference: (cherry picked from commit c7ea06a) Signed-off-by: Maksim An <[email protected]>
1 parent ae71819 commit 33b6293

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/cri/server/container_create_windows.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ func (c *criService) containerSpec(
6767
specOpts = append(specOpts, oci.WithProcessCwd(config.GetWorkingDir()))
6868
} else if imageConfig.WorkingDir != "" {
6969
specOpts = append(specOpts, oci.WithProcessCwd(imageConfig.WorkingDir))
70+
} else if cntrHpc {
71+
specOpts = append(specOpts, oci.WithProcessCwd(`C:\hpc`))
7072
}
7173

7274
if config.GetTty() {

0 commit comments

Comments
 (0)