From 780f8524649c8985c2bd095720ae7213626f5093 Mon Sep 17 00:00:00 2001 From: Alex Corvin Date: Tue, 5 Dec 2023 14:27:06 -0500 Subject: [PATCH] Add pvc for tables list --- trino-partition-updater/base/kustomization.yaml | 1 + trino-partition-updater/base/tables-list-pvc.yaml | 12 ++++++++++++ .../base/trino-partition-updater-pipeline.yaml | 3 +++ 3 files changed, 16 insertions(+) create mode 100644 trino-partition-updater/base/tables-list-pvc.yaml diff --git a/trino-partition-updater/base/kustomization.yaml b/trino-partition-updater/base/kustomization.yaml index b3253e4f..4ed97f34 100644 --- a/trino-partition-updater/base/kustomization.yaml +++ b/trino-partition-updater/base/kustomization.yaml @@ -10,6 +10,7 @@ resources: - trino-partition-updater-cronjob.yaml - trino-partition-updater-serviceaccount.yaml - trino-partition-updater-eventlistener-rolebinding.yaml + - tables-list-pvc.yaml generators: - secrets/secret-generator.yaml diff --git a/trino-partition-updater/base/tables-list-pvc.yaml b/trino-partition-updater/base/tables-list-pvc.yaml new file mode 100644 index 00000000..81cb2683 --- /dev/null +++ b/trino-partition-updater/base/tables-list-pvc.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: tables-list-pvs +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi + limits: + storage: 1Gi diff --git a/trino-partition-updater/base/trino-partition-updater-pipeline.yaml b/trino-partition-updater/base/trino-partition-updater-pipeline.yaml index b95fd53e..d4b70b21 100644 --- a/trino-partition-updater/base/trino-partition-updater-pipeline.yaml +++ b/trino-partition-updater/base/trino-partition-updater-pipeline.yaml @@ -5,6 +5,7 @@ metadata: spec: workspaces: - name: tables-list + tasks: - name: get-all-partitioned-tables taskRef: @@ -17,3 +18,5 @@ spec: name: update-partition-metadata workspaces: - name: tables-list + persistentVolumeClaim: + claimName: tables-list-pvc