Skip to content

Commit

Permalink
[release/1.7]: HPC working directory fix in pkg/cri/server code
Browse files Browse the repository at this point in the history
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 <maksiman@microsoft.com>
  • Loading branch information
anmaxvl committed Jun 6, 2024
1 parent ae71819 commit 33b6293
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/cri/server/container_create_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ func (c *criService) containerSpec(
specOpts = append(specOpts, oci.WithProcessCwd(config.GetWorkingDir()))
} else if imageConfig.WorkingDir != "" {
specOpts = append(specOpts, oci.WithProcessCwd(imageConfig.WorkingDir))
} else if cntrHpc {
specOpts = append(specOpts, oci.WithProcessCwd(`C:\hpc`))
}

if config.GetTty() {
Expand Down

0 comments on commit 33b6293

Please sign in to comment.