mirror of
https://github.com/truenas/charts.git
synced 2026-04-07 12:48:56 +08:00
update image tag on ddns and enable update strategy (#1248)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {}
|
||||
@@ -1,7 +1,7 @@
|
||||
image:
|
||||
repository: qmcgaw/ddns-updater
|
||||
pullPolicy: IfNotPresent
|
||||
tag: latest
|
||||
tag: v2.5.0
|
||||
|
||||
ci: false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user