Prechádzať zdrojové kódy

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

Stavros Kois 2 rokov pred
rodič
commit
ed70c0e1cf

+ 2 - 2
library/ix-dev/community/ddns-updater/Chart.yaml

@@ -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

+ 2 - 2
library/ix-dev/community/ddns-updater/upgrade_strategy_disable → library/ix-dev/community/ddns-updater/upgrade_strategy

@@ -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 - 1
library/ix-dev/community/ddns-updater/values.yaml

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