From 72cd0ecf56ec3a4a607be18057d60e4dee70eb53 Mon Sep 17 00:00:00 2001 From: Paul Payne Date: Wed, 28 May 2025 15:15:57 -0700 Subject: [PATCH] Immich: Add db-init job for database setup and update kustomization files --- apps/immich/README.md | 6 ++++++ apps/immich/{init => }/db-init-job.yaml | 21 ++++++++++++++++++--- apps/immich/init/kustomization.yaml | 4 ---- apps/immich/kustomization.yaml | 6 +++--- apps/immich/service.yaml | 4 ++++ 5 files changed, 31 insertions(+), 10 deletions(-) rename apps/immich/{init => }/db-init-job.yaml (72%) delete mode 100644 apps/immich/init/kustomization.yaml diff --git a/apps/immich/README.md b/apps/immich/README.md index 5787be4..83d15f5 100644 --- a/apps/immich/README.md +++ b/apps/immich/README.md @@ -1 +1,7 @@ # Immich App + +## To Do + +- We need a full uninstall script. +- We need full backup and restore scripts. +- When recreating the app (uninstall/reinstall), db-init needs to re-run (currently the previous one blocks). diff --git a/apps/immich/init/db-init-job.yaml b/apps/immich/db-init-job.yaml similarity index 72% rename from apps/immich/init/db-init-job.yaml rename to apps/immich/db-init-job.yaml index 4ce3854..f22eb42 100644 --- a/apps/immich/init/db-init-job.yaml +++ b/apps/immich/db-init-job.yaml @@ -29,9 +29,24 @@ spec: # Connect to the immich database and enable required extensions PGPASSWORD=${POSTGRES_ADMIN_PASSWORD} psql -h ${DB_HOSTNAME} -U postgres -d ${DB_DATABASE_NAME} <