Skip to content

Commit

Permalink
refactor(jobs): move ttlSecondsAfterFinished (#1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
deer-wmde committed Aug 15, 2023
1 parent 03b488f commit 1763081
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 13 deletions.
3 changes: 1 addition & 2 deletions k8s/jobs/changeReplicationPasswordOnSecondary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ metadata:
generateName: change-replication-password-on-secondary-
namespace: adhoc-jobs
spec:
ttlSecondsAfterFinished: 604800
template:
ttlSecondsAfterFinished: 604800
spec:
ttlSecondsAfterFinished: 604800
containers:
- name: change-replication-password-on-secondary
image: docker.io/bitnami/mariadb:10.5.15-debian-10-r52
Expand Down
3 changes: 1 addition & 2 deletions k8s/jobs/elasticSearchImportJob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ metadata:
generateName: load-elasticsearch-data-
namespace: adhoc-jobs
spec:
ttlSecondsAfterFinished: 604800
template:
ttlSecondsAfterFinished: 604800
metadata:
name: load-elasticsearch-data
spec:
ttlSecondsAfterFinished: 604800
containers:
- name: import-elasticsearch
command:
Expand Down
2 changes: 1 addition & 1 deletion k8s/jobs/elasticSearchInitJob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ metadata:
generateName: elasticsearch-init-job-
namespace: adhoc-jobs
spec:
ttlSecondsAfterFinished: 604800
template:
ttlSecondsAfterFinished: 604800
metadata:
name: elasticsearch-init-job
spec:
Expand Down
3 changes: 1 addition & 2 deletions k8s/jobs/rebuildQuantityUnitsJob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ metadata:
generateName: rebuild-quantity-units-
namespace: adhoc-jobs
spec:
ttlSecondsAfterFinished: 604800
template:
ttlSecondsAfterFinished: 604800
metadata:
name: rebuild-quantity-units
spec:
ttlSecondsAfterFinished: 604800
containers:
- name: rebuild-quantity-units
command:
Expand Down
3 changes: 1 addition & 2 deletions k8s/jobs/resetOtherSqlSecretsJob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ metadata:
generateName: reset-other-sql-secrets-job-
namespace: adhoc-jobs
spec:
ttlSecondsAfterFinished: 604800
template:
ttlSecondsAfterFinished: 604800
spec:
ttlSecondsAfterFinished: 604800
containers:
- name: reset-other-sql-secrets-job
image: docker.io/bitnami/mariadb:10.5.15-debian-10-r52
Expand Down
3 changes: 1 addition & 2 deletions k8s/jobs/resetRootSqlSecretJob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ metadata:
generateName: reset-root-sql-secret-job-
namespace: adhoc-jobs
spec:
ttlSecondsAfterFinished: 604800
template:
ttlSecondsAfterFinished: 604800
spec:
ttlSecondsAfterFinished: 604800
containers:
- name: reset-root-sql-secret-job
image: docker.io/bitnami/mariadb:10.5.15-debian-10-r52
Expand Down
3 changes: 1 addition & 2 deletions k8s/jobs/runAllMWJobsJob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ metadata:
generateName: run-all-mw-jobs-
namespace: adhoc-jobs
spec:
ttlSecondsAfterFinished: 604800
template:
ttlSecondsAfterFinished: 604800
metadata:
name: run-all-mw-jobs
spec:
ttlSecondsAfterFinished: 604800
containers:
- name: run-all-mw-jobs
command:
Expand Down

0 comments on commit 1763081

Please sign in to comment.