Bläddra i källkod

Update chia catalog item in test train

sonicaj 4 år sedan
förälder
incheckning
004d8db898

+ 0 - 0
test/chia/1.2.1/.helmignore → test/chia/1.2.2/.helmignore


+ 9 - 9
test/chia/1.2.1/Chart.yaml → test/chia/1.2.2/Chart.yaml

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

+ 0 - 0
test/chia/1.2.1/README.md → test/chia/1.2.2/README.md


+ 0 - 0
test/chia/1.2.1/app-readme.md → test/chia/1.2.2/app-readme.md


+ 0 - 0
test/chia/1.2.1/charts/common-2105.0.0.tgz → test/chia/1.2.2/charts/common-2105.0.0.tgz


+ 0 - 0
test/chia/1.2.1/default_values.yaml → test/chia/1.2.2/default_values.yaml


+ 2 - 2
test/chia/1.2.1/ix_values.yaml → test/chia/1.2.2/ix_values.yaml

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

+ 0 - 0
test/chia/1.2.1/questions.yaml → test/chia/1.2.2/questions.yaml


+ 0 - 0
test/chia/1.2.1/requirements.lock → test/chia/1.2.2/requirements.lock


+ 0 - 0
test/chia/1.2.1/templates/deployment.yaml → test/chia/1.2.2/templates/deployment.yaml


+ 0 - 0
test/chia/1.2.1/templates/generate-mnemonic.yaml → test/chia/1.2.2/templates/generate-mnemonic.yaml


+ 0 - 0
test/chia/1.2.1/templates/mnemonic-configmap.yaml → test/chia/1.2.2/templates/mnemonic-configmap.yaml


+ 1 - 1
test/chia/1.2.1/test_values.yaml → test/chia/1.2.2/test_values.yaml

@@ -1,6 +1,6 @@
 image:
   repository: ghcr.io/chia-network/chia
-  tag: 1.1.4
+  tag: 1.1.7
   pullPolicy: IfNotPresent
 updateStrategy: Recreate
 

+ 0 - 0
test/chia/1.2.1/values.yaml → test/chia/1.2.2/values.yaml


+ 1 - 0
test/chia/upgrade_info.json

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

+ 24 - 0
test/chia/upgrade_strategy

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