From fed9df8c0ef0425092e1d4241c829584f499e788 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sun, 29 Mar 2026 11:26:30 +0300 Subject: [PATCH] feat(ebooks): mount stacks-config PVC in book-search for force re-download Adds stacks-config volume mount to book-search pod so it can delete Stacks history entries and force re-downloads when a book was consumed by CWA but failed to import. --- stacks/ebooks/main.tf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/stacks/ebooks/main.tf b/stacks/ebooks/main.tf index b0d0627b..dced58ed 100644 --- a/stacks/ebooks/main.tf +++ b/stacks/ebooks/main.tf @@ -740,6 +740,10 @@ resource "kubernetes_deployment" "book_search" { name = "SHORTCUT_ICLOUD_URL" value = "" } + env { + name = "STACKS_DB_PATH" + value = "/stacks-config/queue.db" + } resources { requests = { cpu = "10m" @@ -765,6 +769,10 @@ resource "kubernetes_deployment" "book_search" { name = "audiobooks" mount_path = "/audiobooks" } + volume_mount { + name = "stacks-config" + mount_path = "/stacks-config" + } } volume { name = "cwa-ingest" @@ -778,6 +786,12 @@ resource "kubernetes_deployment" "book_search" { claim_name = module.nfs_audiobookshelf_audiobooks.claim_name } } + volume { + name = "stacks-config" + persistent_volume_claim { + claim_name = module.nfs_calibre_stacks_config.claim_name + } + } } } }