Selaa lähdekoodia

collabora: fix versioning (#2332)

Stavros Kois 1 vuosi sitten
vanhempi
commit
2ee1bbd2b7

+ 1 - 1
library/ix-dev/charts/collabora/Chart.yaml

@@ -4,7 +4,7 @@ description: Collabora is a collaborative online office suite based on LibreOffi
 annotations:
   title: Collabora
 type: application
-version: 2.0.9
+version: 2.0.10
 apiVersion: v2
 appVersion: 23.05.9.4.1
 kubeVersion: '>=1.16.0-0'

+ 4 - 0
library/ix-dev/charts/collabora/upgrade_strategy

@@ -39,6 +39,10 @@ def newer_mapping(image_tags):
         if idx in [0, 1]:
             cleanVersion += part + '.'
             continue
+        if idx == 2:
+            # Preserve the trailing zero on third part, but trim the leading zero
+            cleanVersion += part.lstrip('0') + '.'
+            continue
         if len(part) == 2 and part[0] == '0':
             cleanVersion += part[1] + '.'