Commit 54337743 authored by sonicaj's avatar sonicaj

Update plex catalog item in test train

parent 7e40aa20
apiVersion: v2 apiVersion: v2
appVersion: 1.21.3.4046-3c1c83ba4 appVersion: 1.23.3.4707
dependencies:
- name: common
repository: file://../../../library/common/2105.0.0
version: 2105.0.0
description: Plex Media Server description: Plex Media Server
name: plex
version: 1.6.1
keywords:
- plex
home: https://plex.tv/ home: https://plex.tv/
icon: https://www.plex.tv/wp-content/uploads/2018/01/pmp-icon-1.png icon: https://www.plex.tv/wp-content/uploads/2018/01/pmp-icon-1.png
keywords:
- plex
name: plex
sources: sources:
- https://hub.docker.com/r/plexinc/pms-docker/ - https://hub.docker.com/r/plexinc/pms-docker/
- https://github.com/k8s-at-home/charts/tree/master/charts/plex - https://github.com/k8s-at-home/charts/tree/master/charts/plex
upstream_version: 2.1.0 upstream_version: 2.1.0
dependencies: version: 1.6.2
- name: common
repository: file://../../../library/common/2105.0.0
version: 2105.0.0
image: image:
repository: plexinc/pms-docker
tag: 1.21.3.4046-3c1c83ba4
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
repository: plexinc/pms-docker
tag: 1.23.3.4707-ebb5fe9f3
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
image: image:
repository: plexinc/pms-docker repository: plexinc/pms-docker
tag: 1.20.2.3402-0fec14d92 tag: 1.23.3.4707-ebb5fe9f3
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
##### START --> Official PLEX container environment variables ##### START --> Official PLEX container environment variables
......
{"filename": "ix_values.yaml", "keys": ["image"]}
#!/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]))))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment