client: fixup how alloc mounts directory are setup (#20463)

This commit is contained in:
Seth Hoenig
2024-04-26 07:29:52 -05:00
committed by GitHub
parent 7874d21881
commit 5f64e42d73
4 changed files with 56 additions and 34 deletions

View File

@@ -91,9 +91,9 @@ func setEnvvars(envBuilder *taskenv.Builder, fsi fsisolation.Mode, taskDir *allo
switch fsi {
case fsisolation.Unveil:
// Use mount paths
envBuilder.SetAllocDir(filepath.Join(taskDir.MountsAllocDir, "alloc"))
envBuilder.SetAllocDir(taskDir.MountsAllocDir)
envBuilder.SetTaskLocalDir(filepath.Join(taskDir.MountsTaskDir, "local"))
envBuilder.SetSecretsDir(filepath.Join(taskDir.SecretsDir, "secrets"))
envBuilder.SetSecretsDir(taskDir.MountsSecretsDir)
case fsisolation.None:
// Use host paths
envBuilder.SetAllocDir(taskDir.SharedAllocDir)