瀏覽代碼

Update ipfs catalog item in test train

sonicaj 4 年之前
父節點
當前提交
15afe4c9ec

+ 0 - 0
test/ipfs/1.1.0/.helmignore → test/ipfs/1.1.1/.helmignore


+ 9 - 9
test/ipfs/1.1.0/Chart.yaml → test/ipfs/1.1.1/Chart.yaml

@@ -1,18 +1,18 @@
 apiVersion: v1
+appVersion: v0.9.0
+dependencies:
+- name: common
+  repository: file://../../../library/common/2105.0.0
+  version: 2105.0.0
 description: Global, Versioned, peer-to-peer filesystem.
-name: ipfs
-version: 1.1.0
-appVersion: v0.8.0
+home: https://ipfs.io
+icon: https://ipfs.io/ipfs/QmVk7srrwahXLNmcDYvyUEJptyoxpndnRa57YJ11L4jV26/ipfs.go.png
 keywords:
 - storage
 - p2p
-home: https://ipfs.io
-icon: https://ipfs.io/ipfs/QmVk7srrwahXLNmcDYvyUEJptyoxpndnRa57YJ11L4jV26/ipfs.go.png
+name: ipfs
 sources:
 - https://github.com/ipfs/go-ipfs
 - https://hub.docker.com/r/ipfs/go-ipfs
 upstream_version: 0.8.0-rc1
-dependencies:
-  - name: common
-    repository: file://../../../library/common/2105.0.0
-    version: 2105.0.0
+version: 1.1.1

+ 0 - 0
test/ipfs/1.1.0/README.md → test/ipfs/1.1.1/README.md


+ 0 - 0
test/ipfs/1.1.0/app-readme.md → test/ipfs/1.1.1/app-readme.md


+ 0 - 0
test/ipfs/1.1.0/charts/common-2105.0.0.tgz → test/ipfs/1.1.1/charts/common-2105.0.0.tgz


+ 0 - 0
test/ipfs/1.1.0/default_values.yaml → test/ipfs/1.1.1/default_values.yaml


+ 2 - 2
test/ipfs/1.1.0/ix_values.yaml → test/ipfs/1.1.1/ix_values.yaml

@@ -1,4 +1,4 @@
 image:
-  repository: ipfs/go-ipfs
-  tag: v0.8.0
   pullPolicy: IfNotPresent
+  repository: ipfs/go-ipfs
+  tag: v0.9.0

+ 0 - 0
test/ipfs/1.1.0/questions.yaml → test/ipfs/1.1.1/questions.yaml


+ 0 - 0
test/ipfs/1.1.0/requirements.lock → test/ipfs/1.1.1/requirements.lock


+ 0 - 0
test/ipfs/1.1.0/templates/NOTES.txt → test/ipfs/1.1.1/templates/NOTES.txt


+ 0 - 0
test/ipfs/1.1.0/templates/deployment.yaml → test/ipfs/1.1.1/templates/deployment.yaml


+ 0 - 0
test/ipfs/1.1.0/templates/service.yaml → test/ipfs/1.1.1/templates/service.yaml


+ 0 - 0
test/ipfs/1.1.0/templates/serviceaccount.yaml → test/ipfs/1.1.1/templates/serviceaccount.yaml


+ 1 - 1
test/ipfs/1.1.0/test_values.yaml → test/ipfs/1.1.1/test_values.yaml

@@ -2,7 +2,7 @@
 ##
 image:
   repository: ipfs/go-ipfs
-  tag: v0.8.0
+  tag: v0.9.0
   pullPolicy: IfNotPresent
 
 ## Additional arguments to pass to minio binary

+ 0 - 0
test/ipfs/1.1.0/values.yaml → test/ipfs/1.1.1/values.yaml


+ 1 - 0
test/ipfs/upgrade_info.json

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

+ 24 - 0
test/ipfs/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: f'v{version}'},
+        'app_version': f'v{version}',
+    }
+
+
+if __name__ == '__main__':
+    if len(sys.argv) != 2:
+        exit(1)
+
+    print(json.dumps(newer_mapping(json.loads(sys.argv[1]))))