Update packages/k8s/src/k8s/utils.ts

This commit is contained in:
Thomas Boop
2022-06-07 16:38:02 -04:00
committed by GitHub
parent d0e094649e
commit 152c4e1cc8

View File

@@ -49,7 +49,7 @@ export function containerVolumes(
if (path.isAbsolute(userVolume.sourceVolumePath)) { if (path.isAbsolute(userVolume.sourceVolumePath)) {
if (!userVolume.sourceVolumePath.startsWith(workspacePath)) { if (!userVolume.sourceVolumePath.startsWith(workspacePath)) {
throw new Error( throw new Error(
'absolute path volume mounts outside of the work folder are not supported' 'Volume mounts outside of the work folder are not supported'
) )
} }
sourceVolumePath = userVolume.sourceVolumePath sourceVolumePath = userVolume.sourceVolumePath