diff --git a/test/chia/1.2.1/.helmignore b/test/chia/1.2.2/.helmignore similarity index 100% rename from test/chia/1.2.1/.helmignore rename to test/chia/1.2.2/.helmignore diff --git a/test/chia/1.2.1/Chart.yaml b/test/chia/1.2.2/Chart.yaml similarity index 72% rename from test/chia/1.2.1/Chart.yaml rename to test/chia/1.2.2/Chart.yaml index 4541356099..5c2d6dc2af 100644 --- a/test/chia/1.2.1/Chart.yaml +++ b/test/chia/1.2.2/Chart.yaml @@ -1,18 +1,18 @@ apiVersion: v1 +appVersion: 1.1.7 +dependencies: +- name: common + repository: file://../../../library/common/2105.0.0 + version: 2105.0.0 description: Global, Versioned, peer-to-peer filesystem. -name: chia -version: 1.2.1 -appVersion: 1.1.4 +home: https://www.chia.net/ +icon: https://www.chia.net/img/chia_logo.svg keywords: - storage - crypto - blockchain -home: https://www.chia.net/ -icon: https://www.chia.net/img/chia_logo.svg +name: chia sources: - https://github.com/Chia-Network/chia-blockchain - https://github.com/orgs/chia-network/packages/container/package/chia -dependencies: - - name: common - repository: file://../../../library/common/2105.0.0 - version: 2105.0.0 +version: 1.2.2 diff --git a/test/chia/1.2.1/README.md b/test/chia/1.2.2/README.md similarity index 100% rename from test/chia/1.2.1/README.md rename to test/chia/1.2.2/README.md diff --git a/test/chia/1.2.1/app-readme.md b/test/chia/1.2.2/app-readme.md similarity index 100% rename from test/chia/1.2.1/app-readme.md rename to test/chia/1.2.2/app-readme.md diff --git a/test/chia/1.2.1/charts/common-2105.0.0.tgz b/test/chia/1.2.2/charts/common-2105.0.0.tgz similarity index 100% rename from test/chia/1.2.1/charts/common-2105.0.0.tgz rename to test/chia/1.2.2/charts/common-2105.0.0.tgz diff --git a/test/chia/1.2.1/default_values.yaml b/test/chia/1.2.2/default_values.yaml similarity index 100% rename from test/chia/1.2.1/default_values.yaml rename to test/chia/1.2.2/default_values.yaml diff --git a/test/chia/1.2.1/ix_values.yaml b/test/chia/1.2.2/ix_values.yaml similarity index 88% rename from test/chia/1.2.1/ix_values.yaml rename to test/chia/1.2.2/ix_values.yaml index 0c663f6714..acac381046 100644 --- a/test/chia/1.2.1/ix_values.yaml +++ b/test/chia/1.2.2/ix_values.yaml @@ -1,5 +1,5 @@ image: - repository: ghcr.io/chia-network/chia - tag: 1.1.4 pullPolicy: IfNotPresent + repository: ghcr.io/chia-network/chia + tag: 1.1.7 updateStrategy: Recreate diff --git a/test/chia/1.2.1/questions.yaml b/test/chia/1.2.2/questions.yaml similarity index 100% rename from test/chia/1.2.1/questions.yaml rename to test/chia/1.2.2/questions.yaml diff --git a/test/chia/1.2.1/requirements.lock b/test/chia/1.2.2/requirements.lock similarity index 100% rename from test/chia/1.2.1/requirements.lock rename to test/chia/1.2.2/requirements.lock diff --git a/test/chia/1.2.1/templates/deployment.yaml b/test/chia/1.2.2/templates/deployment.yaml similarity index 100% rename from test/chia/1.2.1/templates/deployment.yaml rename to test/chia/1.2.2/templates/deployment.yaml diff --git a/test/chia/1.2.1/templates/generate-mnemonic.yaml b/test/chia/1.2.2/templates/generate-mnemonic.yaml similarity index 100% rename from test/chia/1.2.1/templates/generate-mnemonic.yaml rename to test/chia/1.2.2/templates/generate-mnemonic.yaml diff --git a/test/chia/1.2.1/templates/mnemonic-configmap.yaml b/test/chia/1.2.2/templates/mnemonic-configmap.yaml similarity index 100% rename from test/chia/1.2.1/templates/mnemonic-configmap.yaml rename to test/chia/1.2.2/templates/mnemonic-configmap.yaml diff --git a/test/chia/1.2.1/test_values.yaml b/test/chia/1.2.2/test_values.yaml similarity index 94% rename from test/chia/1.2.1/test_values.yaml rename to test/chia/1.2.2/test_values.yaml index b2fd50d602..e53da72e9c 100644 --- a/test/chia/1.2.1/test_values.yaml +++ b/test/chia/1.2.2/test_values.yaml @@ -1,6 +1,6 @@ image: repository: ghcr.io/chia-network/chia - tag: 1.1.4 + tag: 1.1.7 pullPolicy: IfNotPresent updateStrategy: Recreate diff --git a/test/chia/1.2.1/values.yaml b/test/chia/1.2.2/values.yaml similarity index 100% rename from test/chia/1.2.1/values.yaml rename to test/chia/1.2.2/values.yaml diff --git a/test/chia/upgrade_info.json b/test/chia/upgrade_info.json new file mode 100644 index 0000000000..5bf84fb901 --- /dev/null +++ b/test/chia/upgrade_info.json @@ -0,0 +1 @@ +{"filename": "ix_values.yaml", "keys": ["image"]} diff --git a/test/chia/upgrade_strategy b/test/chia/upgrade_strategy new file mode 100755 index 0000000000..adafa41868 --- /dev/null +++ b/test/chia/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: version}, + 'app_version': version, + } + + +if __name__ == '__main__': + if len(sys.argv) != 2: + exit(1) + + print(json.dumps(newer_mapping(json.loads(sys.argv[1]))))