mirror of
https://github.com/truenas/charts.git
synced 2026-04-13 17:52:13 +08:00
Update plex catalog item in test train
This commit is contained in:
@@ -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
|
||||
|
||||
17
test/plex/1.6.2/Chart.yaml
Normal file
17
test/plex/1.6.2/Chart.yaml
Normal 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
|
||||
@@ -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
|
||||
@@ -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
|
||||
1
test/plex/upgrade_info.json
Normal file
1
test/plex/upgrade_info.json
Normal file
@@ -0,0 +1 @@
|
||||
{"filename": "ix_values.yaml", "keys": ["image"]}
|
||||
25
test/plex/upgrade_strategy
Executable file
25
test/plex/upgrade_strategy
Executable 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]))))
|
||||
Reference in New Issue
Block a user