Bläddra i källkod

Update plex catalog item in test train

sonicaj 4 år sedan
förälder
incheckning
54337743e6

+ 0 - 18
test/plex/1.6.1/Chart.yaml

@@ -1,18 +0,0 @@
-apiVersion: v2
-appVersion: 1.21.3.4046-3c1c83ba4
-description: Plex Media Server
-name: plex
-version: 1.6.1
-keywords:
-  - plex
-home: https://plex.tv/
-icon: https://www.plex.tv/wp-content/uploads/2018/01/pmp-icon-1.png
-sources:
-  - https://hub.docker.com/r/plexinc/pms-docker/
-  - https://github.com/k8s-at-home/charts/tree/master/charts/plex
-upstream_version: 2.1.0
-dependencies:
-  - name: common
-    repository: file://../../../library/common/2105.0.0
-    version: 2105.0.0
-

+ 0 - 0
test/plex/1.6.1/.helmignore → test/plex/1.6.2/.helmignore


+ 0 - 0
test/plex/1.6.1/Chart.lock → test/plex/1.6.2/Chart.lock


+ 17 - 0
test/plex/1.6.2/Chart.yaml

@@ -0,0 +1,17 @@
+apiVersion: v2
+appVersion: 1.23.3.4707
+dependencies:
+- name: common
+  repository: file://../../../library/common/2105.0.0
+  version: 2105.0.0
+description: Plex Media Server
+home: https://plex.tv/
+icon: https://www.plex.tv/wp-content/uploads/2018/01/pmp-icon-1.png
+keywords:
+- plex
+name: plex
+sources:
+- https://hub.docker.com/r/plexinc/pms-docker/
+- https://github.com/k8s-at-home/charts/tree/master/charts/plex
+upstream_version: 2.1.0
+version: 1.6.2

+ 0 - 0
test/plex/1.6.1/README.md → test/plex/1.6.2/README.md


+ 0 - 0
test/plex/1.6.1/app-readme.md → test/plex/1.6.2/app-readme.md


+ 0 - 0
test/plex/1.6.1/charts/common-2105.0.0.tgz → test/plex/1.6.2/charts/common-2105.0.0.tgz


+ 0 - 0
test/plex/1.6.1/default_values.yaml → test/plex/1.6.2/default_values.yaml


+ 2 - 2
test/plex/1.6.1/ix_values.yaml → test/plex/1.6.2/ix_values.yaml

@@ -1,4 +1,4 @@
 image:
-  repository: plexinc/pms-docker
-  tag: 1.21.3.4046-3c1c83ba4
   pullPolicy: IfNotPresent
+  repository: plexinc/pms-docker
+  tag: 1.23.3.4707-ebb5fe9f3

+ 0 - 0
test/plex/1.6.1/migrations/migrate_from_1.0.0 → test/plex/1.6.2/migrations/migrate_from_1.0.0


+ 0 - 0
test/plex/1.6.1/questions.yaml → test/plex/1.6.2/questions.yaml


+ 0 - 0
test/plex/1.6.1/templates/NOTES.txt → test/plex/1.6.2/templates/NOTES.txt


+ 0 - 0
test/plex/1.6.1/templates/deployment.yaml → test/plex/1.6.2/templates/deployment.yaml


+ 0 - 0
test/plex/1.6.1/templates/probe_config.yaml → test/plex/1.6.2/templates/probe_config.yaml


+ 0 - 0
test/plex/1.6.1/templates/service-tcp.yaml → test/plex/1.6.2/templates/service-tcp.yaml


+ 0 - 0
test/plex/1.6.1/templates/service-udp.yaml → test/plex/1.6.2/templates/service-udp.yaml


+ 1 - 1
test/plex/1.6.1/test_values.yaml → test/plex/1.6.2/test_values.yaml

@@ -6,7 +6,7 @@
 
 image:
   repository: plexinc/pms-docker
-  tag: 1.20.2.3402-0fec14d92
+  tag: 1.23.3.4707-ebb5fe9f3
   pullPolicy: IfNotPresent
 
 #####   START  --> Official PLEX container environment variables

+ 0 - 0
test/plex/1.6.1/values.yaml → test/plex/1.6.2/values.yaml


+ 1 - 0
test/plex/upgrade_info.json

@@ -0,0 +1 @@
+{"filename":  "ix_values.yaml", "keys": ["image"]}

+ 25 - 0
test/plex/upgrade_strategy

@@ -0,0 +1,25 @@
+#!/usr/bin/python3
+import json
+import sys
+
+from catalog_update.upgrade_strategy import semantic_versioning
+
+
+def newer_mapping(image_tags):
+    key = list(image_tags.keys())[0]
+    tags = {t.rsplit('-', 1)[0]: t for t in image_tags[key]}
+    version = semantic_versioning(list(tags))
+    if not version:
+        return {}
+
+    return {
+        'tags': {key: tags[version]},
+        'app_version': version,
+    }
+
+
+if __name__ == '__main__':
+    if len(sys.argv) != 2:
+        exit(1)
+
+    print(json.dumps(newer_mapping(json.loads(sys.argv[1]))))