From c8d9e3153b09f9ba47f6876208738597535c877a Mon Sep 17 00:00:00 2001 From: Deniz Erdogan <91744937+deer-wmde@users.noreply.github.com> Date: Wed, 9 Aug 2023 20:03:49 +0200 Subject: [PATCH] chore(jobs): add ttl of 30 days to job templates (#1070) * chore(jobs): add ttl of 30 days to job templates * change TTL to 7 days (604800) --- k8s/jobs/changeReplicationPasswordOnSecondary.yaml | 1 + k8s/jobs/elasticSearchImportJob.yaml | 1 + k8s/jobs/forceSearchIndexFrom.yaml | 1 + k8s/jobs/rebuildQuantityUnitsJob.yaml | 1 + k8s/jobs/resetOtherSqlSecretsJob.yaml | 1 + k8s/jobs/resetRootSqlSecretJob.yaml | 1 + k8s/jobs/runAllMWJobsJob.yaml | 1 + 7 files changed, 7 insertions(+) diff --git a/k8s/jobs/changeReplicationPasswordOnSecondary.yaml b/k8s/jobs/changeReplicationPasswordOnSecondary.yaml index a27de7134..a14d4205d 100644 --- a/k8s/jobs/changeReplicationPasswordOnSecondary.yaml +++ b/k8s/jobs/changeReplicationPasswordOnSecondary.yaml @@ -5,6 +5,7 @@ metadata: spec: template: spec: + ttlSecondsAfterFinished: 604800 containers: - name: change-replication-password-on-secondary image: docker.io/bitnami/mariadb:10.5.15-debian-10-r52 diff --git a/k8s/jobs/elasticSearchImportJob.yaml b/k8s/jobs/elasticSearchImportJob.yaml index 4cf0d1129..fe38d63d6 100644 --- a/k8s/jobs/elasticSearchImportJob.yaml +++ b/k8s/jobs/elasticSearchImportJob.yaml @@ -7,6 +7,7 @@ spec: metadata: name: load-elasticsearch-data spec: + ttlSecondsAfterFinished: 604800 containers: - name: import-elasticsearch command: diff --git a/k8s/jobs/forceSearchIndexFrom.yaml b/k8s/jobs/forceSearchIndexFrom.yaml index 0b73e9493..e8cad7ce9 100644 --- a/k8s/jobs/forceSearchIndexFrom.yaml +++ b/k8s/jobs/forceSearchIndexFrom.yaml @@ -7,6 +7,7 @@ spec: metadata: name: force-search-index-from spec: + ttlSecondsAfterFinished: 604800 containers: - name: force-search-index-from command: diff --git a/k8s/jobs/rebuildQuantityUnitsJob.yaml b/k8s/jobs/rebuildQuantityUnitsJob.yaml index c002965a4..6728f5dd0 100644 --- a/k8s/jobs/rebuildQuantityUnitsJob.yaml +++ b/k8s/jobs/rebuildQuantityUnitsJob.yaml @@ -7,6 +7,7 @@ spec: metadata: name: rebuild-quantity-units spec: + ttlSecondsAfterFinished: 604800 containers: - name: rebuild-quantity-units command: diff --git a/k8s/jobs/resetOtherSqlSecretsJob.yaml b/k8s/jobs/resetOtherSqlSecretsJob.yaml index 391e7b969..11e0be3e5 100644 --- a/k8s/jobs/resetOtherSqlSecretsJob.yaml +++ b/k8s/jobs/resetOtherSqlSecretsJob.yaml @@ -5,6 +5,7 @@ metadata: spec: template: spec: + ttlSecondsAfterFinished: 604800 containers: - name: reset-other-sql-secrets-job image: docker.io/bitnami/mariadb:10.5.15-debian-10-r52 diff --git a/k8s/jobs/resetRootSqlSecretJob.yaml b/k8s/jobs/resetRootSqlSecretJob.yaml index 4e115fd76..3a4e2f64e 100644 --- a/k8s/jobs/resetRootSqlSecretJob.yaml +++ b/k8s/jobs/resetRootSqlSecretJob.yaml @@ -5,6 +5,7 @@ metadata: spec: template: spec: + ttlSecondsAfterFinished: 604800 containers: - name: reset-root-sql-secret-job image: docker.io/bitnami/mariadb:10.5.15-debian-10-r52 diff --git a/k8s/jobs/runAllMWJobsJob.yaml b/k8s/jobs/runAllMWJobsJob.yaml index 8b9d1e357..3a1f8cb01 100644 --- a/k8s/jobs/runAllMWJobsJob.yaml +++ b/k8s/jobs/runAllMWJobsJob.yaml @@ -7,6 +7,7 @@ spec: metadata: name: run-all-mw-jobs spec: + ttlSecondsAfterFinished: 604800 containers: - name: run-all-mw-jobs command: