From cfe399c0acba0a4a72307b83dc1c4c77708cf8ba Mon Sep 17 00:00:00 2001 From: Jon Edvald Date: Mon, 3 Aug 2020 19:05:49 +0200 Subject: [PATCH] fix(k8s): incorrect paths when hot reloading helm modules --- garden-service/src/plugins/kubernetes/hot-reload.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/garden-service/src/plugins/kubernetes/hot-reload.ts b/garden-service/src/plugins/kubernetes/hot-reload.ts index 9f438c7922..ea58231589 100644 --- a/garden-service/src/plugins/kubernetes/hot-reload.ts +++ b/garden-service/src/plugins/kubernetes/hot-reload.ts @@ -306,7 +306,6 @@ export async function syncToService({ ctx, service, hotReloadSpec, namespace, wo const doSync = async () => { const portForward = await getPortForward({ ctx, log, namespace, targetResource, port: RSYNC_PORT }) - const module = service.module const syncResult = await Bluebird.map(hotReloadSpec.sync, ({ source, target }) => { const sourcePath = rsyncSourcePath(service.sourceModule.path, source) @@ -331,13 +330,15 @@ export async function syncToService({ ctx, service, hotReloadSpec, namespace, wo tmpDir, ] + const files = filesForSync(service.sourceModule, source) + return syncWithOptions({ syncOpts, sourcePath, destinationPath, withDelete: false, log, - files: filesForSync(module, source), + files, }) })