Преглед изворни кода

Publish new changes in catalog

sonicaj пре 1 година
родитељ
комит
7f848a7e52

+ 0 - 0
charts/wg-easy/2.0.18/.helmignore → charts/wg-easy/2.0.19/.helmignore


+ 0 - 0
charts/wg-easy/2.0.18/Chart.lock → charts/wg-easy/2.0.19/Chart.lock


+ 1 - 1
charts/wg-easy/2.0.18/Chart.yaml → charts/wg-easy/2.0.19/Chart.yaml

@@ -3,7 +3,7 @@ description: WG-Easy is the easiest way to install & manage WireGuard!
 annotations:
   title: WG Easy
 type: application
-version: 2.0.18
+version: 2.0.19
 apiVersion: v2
 appVersion: '13'
 kubeVersion: '>=1.16.0-0'

+ 0 - 0
charts/wg-easy/2.0.18/README.md → charts/wg-easy/2.0.19/README.md


+ 0 - 0
charts/wg-easy/2.0.18/app-readme.md → charts/wg-easy/2.0.19/app-readme.md


+ 0 - 0
charts/wg-easy/2.0.18/charts/common-1.2.9.tgz → charts/wg-easy/2.0.19/charts/common-1.2.9.tgz


+ 0 - 0
charts/wg-easy/2.0.18/ci/test-values.yaml → charts/wg-easy/2.0.19/ci/test-values.yaml


+ 0 - 0
charts/wg-easy/2.0.18/ix_values.yaml → charts/wg-easy/2.0.19/ix_values.yaml


+ 0 - 0
charts/wg-easy/2.0.18/metadata.yaml → charts/wg-easy/2.0.19/metadata.yaml


+ 10 - 4
charts/wg-easy/2.0.18/migrations/migrate → charts/wg-easy/2.0.19/migrations/migrate

@@ -37,6 +37,7 @@ def migrate_common_lib(values):
         # Migrate Config
         'wgConfig': {
             'host': values['wgeasy']['host'],
+            'externalPort': values.get('wgUDPPort', 30057),
             'password': values['wgeasy'].get('password', ''),
             'keepAlive': values['wgeasy']['keep_alive'],
             'clientMTU': values['wgeasy']['client_mtu'],
@@ -74,17 +75,22 @@ def migrate_common_lib(values):
 
     return values
 
+
 def migrate(values):
-    if not 'wgeasy' in values.keys():
+    # If we have migrated...
+    if 'wgConfig' in values.keys():
+        # Make sure the externalPort is not missing.
+        if not values['wgConfig'].get('externalPort', None):
+            values['wgConfig']['externalPort'] = values['wgNetwork'].get('udpPort', 30057)
         return values
 
-    if not values['wgConfig'].get('externalPort', None):
-        values['wgConfig']['externalPort'] = values['wgNetwork'].get('udpPort', 30057)
+    # If this key is missing, we have already migrated.
+    if 'wgeasy' not in values.keys():
+        return values
 
     return migrate_common_lib(values)
 
 
-
 if __name__ == '__main__':
     if len(sys.argv) != 2:
         exit(1)

+ 0 - 0
charts/wg-easy/2.0.18/questions.yaml → charts/wg-easy/2.0.19/questions.yaml


+ 0 - 0
charts/wg-easy/2.0.18/templates/NOTES.txt → charts/wg-easy/2.0.19/templates/NOTES.txt


+ 0 - 0
charts/wg-easy/2.0.18/templates/_migration.tpl → charts/wg-easy/2.0.19/templates/_migration.tpl


+ 0 - 0
charts/wg-easy/2.0.18/templates/_persistence.tpl → charts/wg-easy/2.0.19/templates/_persistence.tpl


+ 0 - 0
charts/wg-easy/2.0.18/templates/_portal.tpl → charts/wg-easy/2.0.19/templates/_portal.tpl


+ 0 - 0
charts/wg-easy/2.0.18/templates/_service.tpl → charts/wg-easy/2.0.19/templates/_service.tpl


+ 0 - 0
charts/wg-easy/2.0.18/templates/_wgeasy.tpl → charts/wg-easy/2.0.19/templates/_wgeasy.tpl


+ 0 - 0
charts/wg-easy/2.0.18/templates/common.yaml → charts/wg-easy/2.0.19/templates/common.yaml


+ 0 - 0
charts/wg-easy/2.0.18/to_keep_versions.md → charts/wg-easy/2.0.19/to_keep_versions.md