Skip to content

Commit

Permalink
fix(k8s): incorrect paths when hot reloading helm modules
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald authored and eysi09 committed Aug 5, 2020
1 parent e8fd9bc commit cfe399c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions garden-service/src/plugins/kubernetes/hot-reload.ts
Expand Up @@ -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)
Expand All @@ -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,
})
})

Expand Down

0 comments on commit cfe399c

Please sign in to comment.