From 408bfc997d02dfd374946872df034060b3de8de9 Mon Sep 17 00:00:00 2001 From: sonicaj Date: Thu, 27 Jul 2023 18:17:32 +0000 Subject: [PATCH] Publish new changes in catalog --- community/tdarr/{1.0.15 => 1.0.16}/Chart.lock | 0 community/tdarr/{1.0.15 => 1.0.16}/Chart.yaml | 4 +-- community/tdarr/{1.0.15 => 1.0.16}/README.md | 0 .../tdarr/{1.0.15 => 1.0.16}/app-readme.md | 0 .../charts/common-1.0.12.tgz | Bin .../{1.0.15 => 1.0.16}/ci/basic-values.yaml | 0 .../ci/no-internal-node-values.yaml | 0 .../tdarr/{1.0.15 => 1.0.16}/ix_values.yaml | 2 +- .../tdarr/{1.0.15 => 1.0.16}/metadata.yaml | 0 .../{1.0.15 => 1.0.16}/migrations/migrate | 0 .../tdarr/{1.0.15 => 1.0.16}/questions.yaml | 0 .../{1.0.15 => 1.0.16}/templates/NOTES.txt | 0 .../{1.0.15 => 1.0.16}/templates/_portal.tpl | 0 .../{1.0.15 => 1.0.16}/templates/_tdarr.tpl | 0 .../{1.0.15 => 1.0.16}/templates/common.yaml | 0 .../tdarr/1.0.16/upgrade_strategy_disable | 31 ++++++++++++++++++ 16 files changed, 34 insertions(+), 3 deletions(-) rename community/tdarr/{1.0.15 => 1.0.16}/Chart.lock (100%) rename community/tdarr/{1.0.15 => 1.0.16}/Chart.yaml (93%) rename community/tdarr/{1.0.15 => 1.0.16}/README.md (100%) rename community/tdarr/{1.0.15 => 1.0.16}/app-readme.md (100%) rename community/tdarr/{1.0.15 => 1.0.16}/charts/common-1.0.12.tgz (100%) rename community/tdarr/{1.0.15 => 1.0.16}/ci/basic-values.yaml (100%) rename community/tdarr/{1.0.15 => 1.0.16}/ci/no-internal-node-values.yaml (100%) rename community/tdarr/{1.0.15 => 1.0.16}/ix_values.yaml (96%) rename community/tdarr/{1.0.15 => 1.0.16}/metadata.yaml (100%) rename community/tdarr/{1.0.15 => 1.0.16}/migrations/migrate (100%) rename community/tdarr/{1.0.15 => 1.0.16}/questions.yaml (100%) rename community/tdarr/{1.0.15 => 1.0.16}/templates/NOTES.txt (100%) rename community/tdarr/{1.0.15 => 1.0.16}/templates/_portal.tpl (100%) rename community/tdarr/{1.0.15 => 1.0.16}/templates/_tdarr.tpl (100%) rename community/tdarr/{1.0.15 => 1.0.16}/templates/common.yaml (100%) create mode 100755 community/tdarr/1.0.16/upgrade_strategy_disable diff --git a/community/tdarr/1.0.15/Chart.lock b/community/tdarr/1.0.16/Chart.lock similarity index 100% rename from community/tdarr/1.0.15/Chart.lock rename to community/tdarr/1.0.16/Chart.lock diff --git a/community/tdarr/1.0.15/Chart.yaml b/community/tdarr/1.0.16/Chart.yaml similarity index 93% rename from community/tdarr/1.0.15/Chart.yaml rename to community/tdarr/1.0.16/Chart.yaml index 1bf46006f0..35d9d18435 100644 --- a/community/tdarr/1.0.15/Chart.yaml +++ b/community/tdarr/1.0.16/Chart.yaml @@ -3,9 +3,9 @@ description: Tdarr is a Distributed Transcoding System annotations: title: Tdarr type: application -version: 1.0.15 +version: 1.0.16 apiVersion: v2 -appVersion: '2.00.21' +appVersion: '2.00.20.1' kubeVersion: '>=1.16.0-0' maintainers: - name: truenas diff --git a/community/tdarr/1.0.15/README.md b/community/tdarr/1.0.16/README.md similarity index 100% rename from community/tdarr/1.0.15/README.md rename to community/tdarr/1.0.16/README.md diff --git a/community/tdarr/1.0.15/app-readme.md b/community/tdarr/1.0.16/app-readme.md similarity index 100% rename from community/tdarr/1.0.15/app-readme.md rename to community/tdarr/1.0.16/app-readme.md diff --git a/community/tdarr/1.0.15/charts/common-1.0.12.tgz b/community/tdarr/1.0.16/charts/common-1.0.12.tgz similarity index 100% rename from community/tdarr/1.0.15/charts/common-1.0.12.tgz rename to community/tdarr/1.0.16/charts/common-1.0.12.tgz diff --git a/community/tdarr/1.0.15/ci/basic-values.yaml b/community/tdarr/1.0.16/ci/basic-values.yaml similarity index 100% rename from community/tdarr/1.0.15/ci/basic-values.yaml rename to community/tdarr/1.0.16/ci/basic-values.yaml diff --git a/community/tdarr/1.0.15/ci/no-internal-node-values.yaml b/community/tdarr/1.0.16/ci/no-internal-node-values.yaml similarity index 100% rename from community/tdarr/1.0.15/ci/no-internal-node-values.yaml rename to community/tdarr/1.0.16/ci/no-internal-node-values.yaml diff --git a/community/tdarr/1.0.15/ix_values.yaml b/community/tdarr/1.0.16/ix_values.yaml similarity index 96% rename from community/tdarr/1.0.15/ix_values.yaml rename to community/tdarr/1.0.16/ix_values.yaml index 77164ad88e..7997cc0b8b 100644 --- a/community/tdarr/1.0.15/ix_values.yaml +++ b/community/tdarr/1.0.16/ix_values.yaml @@ -1,7 +1,7 @@ image: repository: haveagitgat/tdarr pullPolicy: IfNotPresent - tag: '2.00.21' + tag: '2.00.20.1' resources: limits: diff --git a/community/tdarr/1.0.15/metadata.yaml b/community/tdarr/1.0.16/metadata.yaml similarity index 100% rename from community/tdarr/1.0.15/metadata.yaml rename to community/tdarr/1.0.16/metadata.yaml diff --git a/community/tdarr/1.0.15/migrations/migrate b/community/tdarr/1.0.16/migrations/migrate similarity index 100% rename from community/tdarr/1.0.15/migrations/migrate rename to community/tdarr/1.0.16/migrations/migrate diff --git a/community/tdarr/1.0.15/questions.yaml b/community/tdarr/1.0.16/questions.yaml similarity index 100% rename from community/tdarr/1.0.15/questions.yaml rename to community/tdarr/1.0.16/questions.yaml diff --git a/community/tdarr/1.0.15/templates/NOTES.txt b/community/tdarr/1.0.16/templates/NOTES.txt similarity index 100% rename from community/tdarr/1.0.15/templates/NOTES.txt rename to community/tdarr/1.0.16/templates/NOTES.txt diff --git a/community/tdarr/1.0.15/templates/_portal.tpl b/community/tdarr/1.0.16/templates/_portal.tpl similarity index 100% rename from community/tdarr/1.0.15/templates/_portal.tpl rename to community/tdarr/1.0.16/templates/_portal.tpl diff --git a/community/tdarr/1.0.15/templates/_tdarr.tpl b/community/tdarr/1.0.16/templates/_tdarr.tpl similarity index 100% rename from community/tdarr/1.0.15/templates/_tdarr.tpl rename to community/tdarr/1.0.16/templates/_tdarr.tpl diff --git a/community/tdarr/1.0.15/templates/common.yaml b/community/tdarr/1.0.16/templates/common.yaml similarity index 100% rename from community/tdarr/1.0.15/templates/common.yaml rename to community/tdarr/1.0.16/templates/common.yaml diff --git a/community/tdarr/1.0.16/upgrade_strategy_disable b/community/tdarr/1.0.16/upgrade_strategy_disable new file mode 100755 index 0000000000..3e49862388 --- /dev/null +++ b/community/tdarr/1.0.16/upgrade_strategy_disable @@ -0,0 +1,31 @@ +#!/usr/bin/python3 +import json +import re +import sys + +from catalog_update.upgrade_strategy import semantic_versioning + + +RE_STABLE_VERSION = re.compile(r'[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+') + + +def newer_mapping(image_tags): + key = list(image_tags.keys())[0] + tags = {t: t for t in image_tags[key] if RE_STABLE_VERSION.fullmatch(t)} + version = semantic_versioning(list(tags)) + if not version: + return {} + + return { + 'tags': {key: tags[version]}, + 'app_version': version, + } + + +if __name__ == '__main__': + try: + versions_json = json.loads(sys.stdin.read()) + except ValueError: + raise ValueError('Invalid json specified') + + print(json.dumps(newer_mapping(versions_json)))