mirror of
https://github.com/truenas/charts.git
synced 2026-04-06 04:09:32 +08:00
Update minio catalog item in test train
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
1
test/minio/upgrade_info.json
Normal file
1
test/minio/upgrade_info.json
Normal file
@@ -0,0 +1 @@
|
||||
{"filename": "ix_values.yaml", "keys": ["image"]}
|
||||
25
test/minio/upgrade_strategy
Executable file
25
test/minio/upgrade_strategy
Executable file
@@ -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]))))
|
||||
Reference in New Issue
Block a user