diff --git a/ansible/roles/schulcloud-server-core/tasks/main.yml b/ansible/roles/schulcloud-server-core/tasks/main.yml index 28c8a15460b..5f8a82c76af 100644 --- a/ansible/roles/schulcloud-server-core/tasks/main.yml +++ b/ansible/roles/schulcloud-server-core/tasks/main.yml @@ -214,28 +214,6 @@ tags: - ingress - - - 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 - when: WITH_TLDRAW2 is defined and WITH_TLDRAW2|bool - tags: - - job - - name: Delete Files CronJob kubernetes.core.k8s: kubeconfig: ~/.kube/config diff --git a/ansible/roles/schulcloud-server-core/templates/tldraw-migration-job.yml.j2 b/ansible/roles/schulcloud-server-core/templates/tldraw-migration-job.yml.j2 deleted file mode 100644 index b18a4e7e934..00000000000 --- a/ansible/roles/schulcloud-server-core/templates/tldraw-migration-job.yml.j2 +++ /dev/null @@ -1,43 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: tldraw-migration-job - namespace: {{ NAMESPACE }} - labels: - app: tldraw-migration -spec: - template: - metadata: - labels: - app: tldraw-migration - spec: - securityContext: - runAsUser: 1000 - runAsGroup: 1000 - fsGroup: 1000 - runAsNonRoot: true - containers: - - name: tldraw-migration-job - image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }} - imagePullPolicy: IfNotPresent - # this is just for this job and should not be an example for anyone else - envFrom: - - configMapRef: - name: api-configmap - - secretRef: - name: api-secret - - secretRef: - name: api-files-secret - - secretRef: - name: tldraw-server-secret - command: ['/bin/sh','-c'] - args: ['npm run nest:start:tldraw-console -- migration run'] - resources: - limits: - cpu: {{ TLDRAW_MIGRATION_CPU_REQUESTS|default("2000m", true) }} - memory: {{ TLDRAW_MIGRATION_MEMORY_REQUESTS|default("2Gi", true) }} - requests: - cpu: {{ TLDRAW_MIGRATION_CPU_REQUESTS|default("100m", true) }} - memory: {{ TLDRAW_MIGRATION_MEMORY_REQUESTS|default("150Mi", true) }} - restartPolicy: Never - backoffLimit: 5