mirror of
https://github.com/truenas/charts.git
synced 2026-04-14 02:30:53 +08:00
Update nextcloud catalog item in test train
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
apiVersion: v2
|
||||
name: nextcloud
|
||||
version: 1.3.0
|
||||
appVersion: 20.0.7
|
||||
appVersion: 21.0.2
|
||||
description: A file sharing server that puts the control and security of your own data back into your hands.
|
||||
keywords:
|
||||
- nextcloud
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
image:
|
||||
repository: nextcloud
|
||||
tag: 20.0.7
|
||||
tag: 21.0.2
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
##
|
||||
image:
|
||||
repository: nextcloud
|
||||
tag: 19.0.3-apache
|
||||
tag: 21.0.2
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
nextcloud:
|
||||
|
||||
1
test/nextcloud/upgrade_info.json
Normal file
1
test/nextcloud/upgrade_info.json
Normal file
@@ -0,0 +1 @@
|
||||
{"filename": "ix_values.yaml", "keys": ["image"]}
|
||||
24
test/nextcloud/upgrade_strategy
Executable file
24
test/nextcloud/upgrade_strategy
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/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]
|
||||
version = semantic_versioning(image_tags[key])
|
||||
if not version:
|
||||
return {}
|
||||
|
||||
return {
|
||||
'tags': {key: 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