From 192d89f5903acded34b0b69c784d55b7838f8155 Mon Sep 17 00:00:00 2001 From: Rajesh Rajendran Date: Fri, 6 Aug 2021 20:52:52 +0530 Subject: [PATCH 1/2] fix(migration): fix the data paths for migration of dbs. Signed-off-by: Rajesh Rajendran --- scripts/helm/migration.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/helm/migration.yaml b/scripts/helm/migration.yaml index 41637d7c5..4d7c2ce64 100644 --- a/scripts/helm/migration.yaml +++ b/scripts/helm/migration.yaml @@ -3,13 +3,15 @@ gather_facts: false environment: KUBECONFIG: "{{ kubeconfig_path }}" + vars: + db_path: [] tasks: - debug: var: migration_versions - block: - name: generating migration db paths set_fact: - db_path: "{{dst_list | default([])}} + [ '{{playbook_dir}}/db/init_dbs/postgresql/{{ item }}/*.sql' ]" + db_path: "{{ db_path }} + [ '{{playbook_dir}}/db/init_dbs/postgresql/{{ item }}/*.sql' ]" with_items: "{{ migration_versions.split(',') }}" - name: Migrate postgresql shell: | @@ -23,6 +25,9 @@ tags: - postgresql - block: + - name: Resetting the db path + set_fact: + db_path: [] - name: generating migration db paths set_fact: db_path: "{{dst_list | default([])}} + [ '{{ item[0] }}/*.sql' ]" From 49adbc9d18eb8ee4c1c503d1ca68f7a658fc67ea Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Fri, 6 Aug 2021 19:14:05 +0200 Subject: [PATCH 2/2] fix(api): updated version vumber fix(storage): defined FS_CLEAN_HRS --- scripts/helm/app/chalice.yaml | 2 +- scripts/helm/app/storage.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/helm/app/chalice.yaml b/scripts/helm/app/chalice.yaml index 1d2f1bd02..0ee55e78c 100644 --- a/scripts/helm/app/chalice.yaml +++ b/scripts/helm/app/chalice.yaml @@ -54,7 +54,7 @@ env: # Enable logging for python app # Ref: https://stackoverflow.com/questions/43969743/logs-in-kubernetes-pod-not-showing-up PYTHONUNBUFFERED: '0' - version_number: '1.2.0' + version_number: '1.3.0' SAML2_MD_URL: '' idp_entityId: '' idp_sso_url: '' diff --git a/scripts/helm/app/storage.yaml b/scripts/helm/app/storage.yaml index 836deab4a..981a9b885 100644 --- a/scripts/helm/app/storage.yaml +++ b/scripts/helm/app/storage.yaml @@ -43,3 +43,4 @@ env: KAFKA_SERVERS: kafka.db.svc.cluster.local:9092 KAFKA_USE_SSL: false LICENSE_KEY: "" + FS_CLEAN_HRS: 12