Josh Bicking před 2 měsíci
rodič
revize
716e2aba8f
7 změnil soubory, kde provedl 27 přidání a 11 odebrání
  1. 3 1
      bazarr.yaml
  2. 3 1
      lidarr.yaml
  3. 3 1
      prowlarr.yaml
  4. 3 1
      radarr.yaml
  5. 6 6
      seedbox_sync.py
  6. 6 0
      shelly-plug-exporter.yaml
  7. 3 1
      sonarr.yaml

+ 3 - 1
bazarr.yaml

@@ -5,6 +5,8 @@ metadata:
   name: bazarr
   namespace: plex
 spec:
+  strategy:
+    type: Recreate
   selector:
     matchLabels:
       app: bazarr
@@ -18,7 +20,7 @@ spec:
     spec:
       containers:
       - name: bazarr
-        image: lscr.io/linuxserver/bazarr:development-version-v1.4.3-beta.31
+        image: lscr.io/linuxserver/bazarr:development-v1.4.4-beta.24-ls617
         ports:
         - containerPort: 6767
           name: http-web-svc

+ 3 - 1
lidarr.yaml

@@ -5,6 +5,8 @@ metadata:
   name: lidarr
   namespace: plex
 spec:
+  strategy:
+    type: Recreate
   selector:
     matchLabels:
       app: lidarr
@@ -18,7 +20,7 @@ spec:
     spec:
       containers:
       - name: lidarr
-        image: lscr.io/linuxserver/lidarr:nightly-2.1.3.3913-ls51
+        image: lscr.io/linuxserver/lidarr:nightly-2.5.0.4277-ls19
         ports:
         - containerPort: 8686
           name: http-web-svc

+ 3 - 1
prowlarr.yaml

@@ -5,6 +5,8 @@ metadata:
   name: prowlarr
   namespace: plex
 spec:
+  strategy:
+    type: Recreate
   selector:
     matchLabels:
       app: prowlarr
@@ -16,7 +18,7 @@ spec:
     spec:
       containers:
       - name: prowlarr
-        image: lscr.io/linuxserver/prowlarr:nightly-1.10.3.4070-ls21
+        image: lscr.io/linuxserver/prowlarr:nightly-1.21.1.4626-ls25
         ports:
         - containerPort: 9696
           name: http-web-svc

+ 3 - 1
radarr.yaml

@@ -5,6 +5,8 @@ metadata:
   name: radarr
   namespace: plex
 spec:
+  strategy:
+    type: Recreate
   selector:
     matchLabels:
       app: radarr
@@ -18,7 +20,7 @@ spec:
     spec:
       containers:
       - name: radarr
-        image: lscr.io/linuxserver/radarr:nightly-5.3.1.8427-ls148
+        image: lscr.io/linuxserver/radarr:nightly-5.8.3.8932-ls42
         ports:
         - containerPort: 7878
           name: http-web-svc

+ 6 - 6
seedbox_sync.py

@@ -31,14 +31,14 @@ host, host_data_path, local_working_path, local_metadata_path, local_data_path =
 
 r = subprocess.run(["ssh", host, "bash", "-c", f"IFS=$'\n'; ls {host_data_path}"], stdout=subprocess.PIPE, check=True)
 
-available = {f for f in r.stdout.decode().split('\n') if f}
+available_files = {f for f in r.stdout.decode().split('\n') if f}
 
 # There's better ways to list a dir locally, but using bash & ls again reduces possible formatting discrepencies.
 r = subprocess.run(["bash", "-c", f"IFS=$'\n'; ls {local_metadata_path}"], stdout=subprocess.PIPE, check=True)
 
-processed = {f for f in r.stdout.decode().split('\n') if f}
+processed_files = {f for f in r.stdout.decode().split('\n') if f}
 
-new = available - processed
+new_files = available_files - processed_files
 
 def process_file(new_file: str) -> None:
     # Be super cautious about empty file names, wouldn't want to `rm -rf` a folder by accident
@@ -53,17 +53,17 @@ def process_file(new_file: str) -> None:
     try:
         subprocess.run(["mv", f'{local_working_path}/{new_file}', f'{local_data_path}'], check=True)
     except:
-        subprocess.run(["rm", f'{local_metadata_path}/{new_file}'], check=True)
+        subprocess.run(["rm", f'{local_metadata_path}/{new_file}'], check=False)
         raise
 
     subprocess.run(["rm", "-rf", f'{local_working_path}/{new_file}'], check=True)
 
 with concurrent.futures.ThreadPoolExecutor(max_workers=8) as executor:
-    future_to_new_files = {executor.submit(process_file, new_file): new_file for new_file in new}
+    future_to_new_files = {executor.submit(process_file, new_file): new_file for new_file in new_files}
     for future in concurrent.futures.as_completed(future_to_new_files):
         new_file = future_to_new_files[future]
         try:
             data = future.result()
             print(f"Processed {new_file}")
         except Exception as exc:
-            print('%r generated an exception: %s' % (new_file, exc))
+            print(f"{new_file} generated an exception: {exc}")

+ 6 - 0
shelly-plug-exporter.yaml

@@ -9,6 +9,8 @@ metadata:
     prometheus.io/port: "8080"
     prometheus.io/scrape: "true"
 spec:
+  strategy:
+    type: Recreate
   selector:
     matchLabels:
       app: shelly-plug-exporter
@@ -41,6 +43,10 @@ spec:
           value: 30s
         - name: SERVER_TIMEOUT_WRITE
           value: 30s
+        - name: LOG_DEBUG
+          value: "1"
+        - name: LOG_JSON
+          value: "0"
 ---
 apiVersion: v1
 kind: Service

+ 3 - 1
sonarr.yaml

@@ -5,6 +5,8 @@ metadata:
   name: sonarr
   namespace: plex
 spec:
+  strategy:
+    type: Recreate
   selector:
     matchLabels:
       app: sonarr
@@ -18,7 +20,7 @@ spec:
     spec:
       containers:
       - name: sonarr
-        image: lscr.io/linuxserver/sonarr:develop-4.0.0.752-ls25
+        image: lscr.io/linuxserver/sonarr:develop-4.0.8.1902-ls79
         ports:
         - containerPort: 8989
           name: http-web-svc