From 22ebadf393a5f9e023056e1030e8fcb519782d63 Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Tue, 4 Jul 2023 19:28:34 +0200 Subject: [PATCH] refactor(helm): move seed job emptyDir mount to /app/cache (from /cache) --- charts/backoffice/templates/job-db-seed.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/backoffice/templates/job-db-seed.yaml b/charts/backoffice/templates/job-db-seed.yaml index 4ace8ca..4c4e45f 100644 --- a/charts/backoffice/templates/job-db-seed.yaml +++ b/charts/backoffice/templates/job-db-seed.yaml @@ -24,7 +24,7 @@ spec: - | npm install esbuild --no-save npx esbuild prisma/seed.ts --outfile=/cache/seed.cjs --bundle --format=cjs --external:prisma --external:@prisma/client --platform=node - node /cache/seed.cjs + node /app/cache/seed.cjs envFrom: - configMapRef: name: {{ .Release.Name }}-config @@ -33,7 +33,7 @@ spec: - secretRef: name: {{ .Release.Name }}-nextauth volumeMounts: - - mountPath: /cache + - mountPath: /app/cache name: cache-volume restartPolicy: Never volumes: