Skip to content

Commit

Permalink
BC-7881 - recreate tldraw migration job if necessary (#5229)
Browse files Browse the repository at this point in the history
Co-authored-by: Phillip Wirth <phillip.wirth@dataport.de>
  • Loading branch information
SevenWaysDP and Loki-Afro committed Sep 9, 2024
1 parent 1a8dd2d commit c7708ca
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions ansible/roles/schulcloud-server-core/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,25 @@
tags:
- ingress

- name: tldaraw migration Job

- name: remove old tldraw migration Job
kubernetes.core.k8s:
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
api_version: batch/v1
kind: Job
name: tldraw-migration-job
state: absent
wait: yes
tags:
- job

- name: tldraw migration Job
kubernetes.core.k8s:
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: tldraw-migration-job.yml.j2
state: "{{ 'present' if WITH_TLDRAW2 else 'absent'}}"
when: WITH_TLDRAW2 is defined and WITH_TLDRAW2|bool
tags:
- job

Expand Down

0 comments on commit c7708ca

Please sign in to comment.