update image tag on ddns and enable update strategy (#1248)

This commit is contained in:
Stavros Kois
2023-06-08 01:30:05 +03:00
committed by GitHub
parent 0b22d64163
commit ed70c0e1cf
3 changed files with 5 additions and 5 deletions

View File

@@ -3,9 +3,9 @@ description: Lightweight universal DDNS Updater with web UI
annotations:
title: DDNS Updater
type: application
version: 1.0.4
version: 1.0.5
apiVersion: v2
appVersion: 'latest'
appVersion: 'v2.5.0'
kubeVersion: '>=1.16.0-0'
maintainers:
- name: truenas

View File

@@ -6,12 +6,12 @@ import sys
from catalog_update.upgrade_strategy import semantic_versioning
RE_STABLE_VERSION = re.compile(r'latest')
RE_STABLE_VERSION = re.compile(r'v[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)}
tags = {t.strip("v"): t for t in image_tags[key] if RE_STABLE_VERSION.fullmatch(t)}
version = semantic_versioning(list(tags))
if not version:
return {}

View File

@@ -1,7 +1,7 @@
image:
repository: qmcgaw/ddns-updater
pullPolicy: IfNotPresent
tag: latest
tag: v2.5.0
ci: false