Update plex catalog item in test train

This commit is contained in:
sonicaj
2021-07-04 17:58:36 +05:00
parent 7e40aa20b5
commit 54337743e6
20 changed files with 46 additions and 21 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

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

25
test/plex/upgrade_strategy Executable file
View File

@@ -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]))))