From 376b110cdd44181d7209fbf226076926eb40e8b1 Mon Sep 17 00:00:00 2001 From: Rajesh Rajendran Date: Sat, 10 Jul 2021 18:55:52 +0530 Subject: [PATCH] fix(upgrade): copy postgresql migration Use complete path rather than file name for copy to pod. Signed-off-by: Rajesh Rajendran --- scripts/helm/migration.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/helm/migration.yaml b/scripts/helm/migration.yaml index 4ebf13144..41637d7c5 100644 --- a/scripts/helm/migration.yaml +++ b/scripts/helm/migration.yaml @@ -15,7 +15,7 @@ shell: | file="{{ item|basename }}" kubectl exec -n db postgresql-postgresql-0 -- /bin/bash -c "rm -rf /tmp/$file" - kubectl cp -n db $file postgresql-postgresql-0:/tmp/ + kubectl cp -n db {{ item }} postgresql-postgresql-0:/tmp/ kubectl exec -n db postgresql-postgresql-0 -- /bin/bash -c "PGPASSWORD=asayerPostgres psql -U postgres -f /tmp/$file" &> "{{ playbook_dir }}"/postgresql_init.log args: chdir: db/init_dbs/postgresql