Commit 15afe4c9 authored by sonicaj's avatar sonicaj

Update ipfs catalog item in test train

parent 004d8db8
apiVersion: v1 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. description: Global, Versioned, peer-to-peer filesystem.
name: ipfs home: https://ipfs.io
version: 1.1.0 icon: https://ipfs.io/ipfs/QmVk7srrwahXLNmcDYvyUEJptyoxpndnRa57YJ11L4jV26/ipfs.go.png
appVersion: v0.8.0
keywords: keywords:
- storage - storage
- p2p - p2p
home: https://ipfs.io name: ipfs
icon: https://ipfs.io/ipfs/QmVk7srrwahXLNmcDYvyUEJptyoxpndnRa57YJ11L4jV26/ipfs.go.png
sources: sources:
- https://github.com/ipfs/go-ipfs - https://github.com/ipfs/go-ipfs
- https://hub.docker.com/r/ipfs/go-ipfs - https://hub.docker.com/r/ipfs/go-ipfs
upstream_version: 0.8.0-rc1 upstream_version: 0.8.0-rc1
dependencies: version: 1.1.1
- name: common
repository: file://../../../library/common/2105.0.0
version: 2105.0.0
image: image:
repository: ipfs/go-ipfs
tag: v0.8.0
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
repository: ipfs/go-ipfs
tag: v0.9.0
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
## ##
image: image:
repository: ipfs/go-ipfs repository: ipfs/go-ipfs
tag: v0.8.0 tag: v0.9.0
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 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]))))
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