From 7e3ba30f57ecb6ef3b6ca7892a16708d85223efd Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 18 Oct 2023 11:14:04 +0200 Subject: [PATCH] Rename to taiga --- infrastructure/docker-backup/build.py | 2 +- infrastructure/docker-backup/test/Dockerfile | 2 +- src/main/cljc/dda/c4k_taiga/backup.cljc | 2 +- .../backup/backup-restore-deployment.yaml | 12 ++++++------ src/main/resources/backup/config.yaml | 2 +- src/main/resources/backup/cron.yaml | 14 +++++++------- src/test/resources/taiga-test/valid-auth.yaml | 4 ++-- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/infrastructure/docker-backup/build.py b/infrastructure/docker-backup/build.py index 2247dd4..3a87c9f 100644 --- a/infrastructure/docker-backup/build.py +++ b/infrastructure/docker-backup/build.py @@ -2,7 +2,7 @@ from os import environ from pybuilder.core import task, init from ddadevops import * -name = "c4k-forgejo-backup" +name = "c4k-taiga-backup" MODULE = "docker" PROJECT_ROOT_PATH = "../.." diff --git a/infrastructure/docker-backup/test/Dockerfile b/infrastructure/docker-backup/test/Dockerfile index 0db1c6c..667bca5 100644 --- a/infrastructure/docker-backup/test/Dockerfile +++ b/infrastructure/docker-backup/test/Dockerfile @@ -1,4 +1,4 @@ -FROM c4k-forgejo-backup +FROM c4k-taiga-backup RUN apt update RUN apt -yqq --no-install-recommends --yes install curl default-jre-headless diff --git a/src/main/cljc/dda/c4k_taiga/backup.cljc b/src/main/cljc/dda/c4k_taiga/backup.cljc index eb55172..9b4ae04 100644 --- a/src/main/cljc/dda/c4k_taiga/backup.cljc +++ b/src/main/cljc/dda/c4k_taiga/backup.cljc @@ -1,4 +1,4 @@ -(ns dda.c4k-forgejo.backup +(ns dda.c4k-taiga.backup (:require [clojure.spec.alpha :as s] #?(:cljs [shadow.resource :as rc]) diff --git a/src/main/resources/backup/backup-restore-deployment.yaml b/src/main/resources/backup/backup-restore-deployment.yaml index 163bc14..5282413 100644 --- a/src/main/resources/backup/backup-restore-deployment.yaml +++ b/src/main/resources/backup/backup-restore-deployment.yaml @@ -14,10 +14,10 @@ spec: labels: app: backup-restore app.kubernetes.io/name: backup-restore - app.kubernetes.io/part-of: forgejo + app.kubernetes.io/part-of: taiga spec: containers: - - image: domaindrivenarchitecture/c4k-forgejo-backup + - image: domaindrivenarchitecture/c4k-taiga-backup name: backup-app imagePullPolicy: IfNotPresent command: ["/entrypoint-start-and-wait.sh"] @@ -59,15 +59,15 @@ spec: - name: CERTIFICATE_FILE value: "" volumeMounts: - - name: forgejo-data-volume + - name: taiga-data-volume mountPath: /var/backups - name: backup-secret-volume mountPath: /var/run/secrets/backup-secrets readOnly: true - volumes: - - name: forgejo-data-volume + volumes: # ToDo check correct volumes + - name: taiga-data-volume persistentVolumeClaim: - claimName: forgejo-data-pvc + claimName: taiga-data-pvc - name: backup-secret-volume secret: secretName: backup-secret \ No newline at end of file diff --git a/src/main/resources/backup/config.yaml b/src/main/resources/backup/config.yaml index f7252a2..36781e7 100644 --- a/src/main/resources/backup/config.yaml +++ b/src/main/resources/backup/config.yaml @@ -4,6 +4,6 @@ metadata: name: backup-config labels: app.kubernetes.io/name: backup - app.kubernetes.io/part-of: forgejo + app.kubernetes.io/part-of: taiga data: restic-repository: restic-repository \ No newline at end of file diff --git a/src/main/resources/backup/cron.yaml b/src/main/resources/backup/cron.yaml index 349b04a..643f9c2 100644 --- a/src/main/resources/backup/cron.yaml +++ b/src/main/resources/backup/cron.yaml @@ -1,9 +1,9 @@ apiVersion: batch/v1beta1 kind: CronJob metadata: - name: forgejo-backup + name: taiga-backup labels: - app.kubernetes.part-of: forgejo + app.kubernetes.part-of: taiga spec: schedule: "10 23 * * *" successfulJobsHistoryLimit: 1 @@ -14,7 +14,7 @@ spec: spec: containers: - name: backup-app - image: domaindrivenarchitecture/c4k-forgejo-backup + image: domaindrivenarchitecture/c4k-taiga-backup imagePullPolicy: IfNotPresent command: ["/entrypoint.sh"] env: @@ -55,15 +55,15 @@ spec: - name: CERTIFICATE_FILE value: "" volumeMounts: - - name: forgejo-data-volume + - name: taiga-data-volume mountPath: /var/backups - name: backup-secret-volume mountPath: /var/run/secrets/backup-secrets readOnly: true - volumes: - - name: forgejo-data-volume + volumes: #ToDo: check correct volumes + - name: taiga-data-volume persistentVolumeClaim: - claimName: forgejo-data-pvc + claimName: taiga-data-pvc - name: backup-secret-volume secret: secretName: backup-secret diff --git a/src/test/resources/taiga-test/valid-auth.yaml b/src/test/resources/taiga-test/valid-auth.yaml index 29515f0..6285f89 100644 --- a/src/test/resources/taiga-test/valid-auth.yaml +++ b/src/test/resources/taiga-test/valid-auth.yaml @@ -1,6 +1,6 @@ taiga-secret-key: "some-key" -postgres-db-user: "forgejo" -postgres-db-password: "forgejo-db-password" +postgres-db-user: "taiga" +postgres-db-password: "taiga-db-password" mailer-user: "mailer-user" mailer-pw: "mailer-pw" django-superuser-username: "taiga-admin"