mirror of
https://github.com/truenas/charts.git
synced 2026-02-03 02:23:49 +08:00
Update chia catalog item in test train
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
apiVersion: v1
|
||||
appVersion: 1.1.7
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: file://../../../library/common/2105.0.0
|
||||
version: 2105.0.0
|
||||
description: Global, Versioned, peer-to-peer filesystem.
|
||||
name: chia
|
||||
version: 1.2.1
|
||||
appVersion: 1.1.4
|
||||
home: https://www.chia.net/
|
||||
icon: https://www.chia.net/img/chia_logo.svg
|
||||
keywords:
|
||||
- storage
|
||||
- crypto
|
||||
- blockchain
|
||||
home: https://www.chia.net/
|
||||
icon: https://www.chia.net/img/chia_logo.svg
|
||||
name: chia
|
||||
sources:
|
||||
- https://github.com/Chia-Network/chia-blockchain
|
||||
- https://github.com/orgs/chia-network/packages/container/package/chia
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: file://../../../library/common/2105.0.0
|
||||
version: 2105.0.0
|
||||
version: 1.2.2
|
||||
@@ -1,5 +1,5 @@
|
||||
image:
|
||||
repository: ghcr.io/chia-network/chia
|
||||
tag: 1.1.4
|
||||
pullPolicy: IfNotPresent
|
||||
repository: ghcr.io/chia-network/chia
|
||||
tag: 1.1.7
|
||||
updateStrategy: Recreate
|
||||
@@ -1,6 +1,6 @@
|
||||
image:
|
||||
repository: ghcr.io/chia-network/chia
|
||||
tag: 1.1.4
|
||||
tag: 1.1.7
|
||||
pullPolicy: IfNotPresent
|
||||
updateStrategy: Recreate
|
||||
|
||||
1
test/chia/upgrade_info.json
Normal file
1
test/chia/upgrade_info.json
Normal file
@@ -0,0 +1 @@
|
||||
{"filename": "ix_values.yaml", "keys": ["image"]}
|
||||
24
test/chia/upgrade_strategy
Executable file
24
test/chia/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