Kaynağa Gözat

diskover: fix typo (#2612)

* diskover: fix typo

* fmt
Stavros Kois 1 yıl önce
ebeveyn
işleme
204385f798

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

@@ -3,7 +3,7 @@ description: Diskover is used to monitor size/volumes of distributed dataset.
 annotations:
   title: Diskover Data
 type: application
-version: 2.0.1
+version: 2.0.2
 apiVersion: v2
 appVersion: "2.0.1"
 kubeVersion: ">=1.16.0-0"

+ 3 - 0
library/ix-dev/charts/diskoverdata/migrations/migrate

@@ -90,6 +90,9 @@ def migrate_common_lib(values):
     return values
 
 def migrate(values):
+    # Fix typo
+    if 'discoverConfig' in values.keys():
+        values['diskoverConfig'] = values.pop('discoverConfig')
     # If this missing, we have already migrated
     if not 'appVolumeMounts' in values.keys():
         return values

+ 1 - 1
library/ix-dev/charts/diskoverdata/questions.yaml

@@ -33,7 +33,7 @@ questions:
       $ref:
         - definitions/timezone
 
-  - variable: discoverConfig
+  - variable: diskoverConfig
     label: ""
     group: Diskover Data Configuration
     schema: