Explorar o código

Update minio catalog item in test train

sonicaj %!s(int64=4) %!d(string=hai) anos
pai
achega
59c7faee3b

+ 0 - 0
test/minio/1.3.0/.helmignore → test/minio/1.3.1/.helmignore


+ 9 - 9
test/minio/1.3.0/Chart.yaml → test/minio/1.3.1/Chart.yaml

@@ -1,19 +1,19 @@
 apiVersion: v1
+appVersion: '2021-06-17'
+dependencies:
+- name: common
+  repository: file://../../../library/common/2105.0.0
+  version: 2105.0.0
 description: High Performance, Kubernetes Native Object Storage
-name: minio
-version: 1.3.0
-appVersion: RELEASE.2021-02-19T04-38-02Z
+home: https://min.io
+icon: https://min.io/resources/img/logo/MINIO_wordmark.png
 keywords:
 - storage
 - object-storage
 - S3
-home: https://min.io
-icon: https://min.io/resources/img/logo/MINIO_wordmark.png
+name: minio
 sources:
 - https://github.com/minio/minio
 - https://github.com/minio/charts
 upstream_version: 8.0.5
-dependencies:
-  - name: common
-    repository: file://../../../library/common/2105.0.0
-    version: 2105.0.0
+version: 1.3.1

+ 0 - 0
test/minio/1.3.0/README.md → test/minio/1.3.1/README.md


+ 0 - 0
test/minio/1.3.0/app-readme.md → test/minio/1.3.1/app-readme.md


+ 0 - 0
test/minio/1.3.0/charts/common-2105.0.0.tgz → test/minio/1.3.1/charts/common-2105.0.0.tgz


+ 0 - 0
test/minio/1.3.0/default_values.yaml → test/minio/1.3.1/default_values.yaml


+ 2 - 2
test/minio/1.3.0/ix_values.yaml → test/minio/1.3.1/ix_values.yaml

@@ -1,4 +1,4 @@
 image:
-  repository: minio/minio
-  tag: RELEASE.2021-02-19T04-38-02Z
   pullPolicy: IfNotPresent
+  repository: minio/minio
+  tag: RELEASE.2021-06-17T00-10-46Z

+ 0 - 0
test/minio/1.3.0/migrations/migrate_from_1.0.0 → test/minio/1.3.1/migrations/migrate_from_1.0.0


+ 0 - 0
test/minio/1.3.0/questions.yaml → test/minio/1.3.1/questions.yaml


+ 0 - 0
test/minio/1.3.0/requirements.lock → test/minio/1.3.1/requirements.lock


+ 0 - 0
test/minio/1.3.0/templates/NOTES.txt → test/minio/1.3.1/templates/NOTES.txt


+ 0 - 0
test/minio/1.3.0/templates/_cert.tpl → test/minio/1.3.1/templates/_cert.tpl


+ 0 - 0
test/minio/1.3.0/templates/_helpers.tpl → test/minio/1.3.1/templates/_helpers.tpl


+ 0 - 0
test/minio/1.3.0/templates/configmap.yaml → test/minio/1.3.1/templates/configmap.yaml


+ 0 - 0
test/minio/1.3.0/templates/deployment.yaml → test/minio/1.3.1/templates/deployment.yaml


+ 0 - 0
test/minio/1.3.0/templates/secrets.yaml → test/minio/1.3.1/templates/secrets.yaml


+ 0 - 0
test/minio/1.3.0/templates/service.yaml → test/minio/1.3.1/templates/service.yaml


+ 0 - 0
test/minio/1.3.0/templates/serviceaccount.yaml → test/minio/1.3.1/templates/serviceaccount.yaml


+ 1 - 1
test/minio/1.3.0/test_values.yaml → test/minio/1.3.1/test_values.yaml

@@ -2,7 +2,7 @@
 ##
 image:
   repository: minio/minio
-  tag: RELEASE.2021-02-19T04-38-02Z
+  tag: RELEASE.2021-06-17T00-10-46Z
   pullPolicy: IfNotPresent
 
 ## Additional arguments to pass to minio binary

+ 0 - 0
test/minio/1.3.0/values.yaml → test/minio/1.3.1/values.yaml


+ 1 - 0
test/minio/upgrade_info.json

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

+ 25 - 0
test/minio/upgrade_strategy

@@ -0,0 +1,25 @@
+#!/usr/bin/python3
+import json
+import sys
+
+from catalog_update.upgrade_strategy import datetime_versioning
+
+
+def newer_mapping(image_tags):
+    key = list(image_tags.keys())[0]
+    tags = {t.strip('RELEASE.'): t for t in image_tags[key] if t.startswith('RELEASE.') and t.endswith('Z')}
+    version = datetime_versioning(list(tags), '%Y-%m-%dT%H-%M-%SZ')
+    if not version:
+        return {}
+
+    return {
+        'tags': {key: tags[version]},
+        'app_version': version.split('T')[0],
+    }
+
+
+if __name__ == '__main__':
+    if len(sys.argv) != 2:
+        exit(1)
+
+    print(json.dumps(newer_mapping(json.loads(sys.argv[1]))))