From cbea9599660aa8277e371737bb0dfb1a5ef510d4 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sun, 29 Mar 2026 11:31:41 +0300 Subject: [PATCH] feat(ebooks): mount calibre-library PVC in book-search for permission fixing CWA NETWORK_SHARE_MODE=true skips post-import chown, leaving files as root. book-search now mounts the library to periodically fix permissions on recently imported books. --- stacks/ebooks/main.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/stacks/ebooks/main.tf b/stacks/ebooks/main.tf index dced58ed..e3d24063 100644 --- a/stacks/ebooks/main.tf +++ b/stacks/ebooks/main.tf @@ -773,6 +773,10 @@ resource "kubernetes_deployment" "book_search" { name = "stacks-config" mount_path = "/stacks-config" } + volume_mount { + name = "calibre-library" + mount_path = "/calibre-library" + } } volume { name = "cwa-ingest" @@ -786,6 +790,12 @@ resource "kubernetes_deployment" "book_search" { claim_name = module.nfs_audiobookshelf_audiobooks.claim_name } } + volume { + name = "calibre-library" + persistent_volume_claim { + claim_name = module.nfs_calibre_library.claim_name + } + } volume { name = "stacks-config" persistent_volume_claim {