Commit 59c7faee authored by sonicaj's avatar sonicaj

Update minio catalog item in test train

parent 15afe4c9
apiVersion: v1 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 description: High Performance, Kubernetes Native Object Storage
name: minio home: https://min.io
version: 1.3.0 icon: https://min.io/resources/img/logo/MINIO_wordmark.png
appVersion: RELEASE.2021-02-19T04-38-02Z
keywords: keywords:
- storage - storage
- object-storage - object-storage
- S3 - S3
home: https://min.io name: minio
icon: https://min.io/resources/img/logo/MINIO_wordmark.png
sources: sources:
- https://github.com/minio/minio - https://github.com/minio/minio
- https://github.com/minio/charts - https://github.com/minio/charts
upstream_version: 8.0.5 upstream_version: 8.0.5
dependencies: version: 1.3.1
- name: common
repository: file://../../../library/common/2105.0.0
version: 2105.0.0
image: image:
repository: minio/minio
tag: RELEASE.2021-02-19T04-38-02Z
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
repository: minio/minio
tag: RELEASE.2021-06-17T00-10-46Z
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
## ##
image: image:
repository: minio/minio repository: minio/minio
tag: RELEASE.2021-02-19T04-38-02Z tag: RELEASE.2021-06-17T00-10-46Z
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
## Additional arguments to pass to minio binary ## Additional arguments to pass to minio binary
......
{"filename": "ix_values.yaml", "keys": ["image"]}
#!/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]))))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment