Pārlūkot izejas kodu

diskoverdata: fix more typos (#2618)

Stavros Kois 1 gadu atpakaļ
vecāks
revīzija
63c703d3c9

+ 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.2
+version: 2.0.3
 apiVersion: v2
 appVersion: "2.0.1"
 kubeVersion: ">=1.16.0-0"

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

@@ -89,10 +89,15 @@ def migrate_common_lib(values):
 
     return values
 
+
 def migrate(values):
     # Fix typo
     if 'discoverConfig' in values.keys():
         values['diskoverConfig'] = values.pop('discoverConfig')
+    if 'discoverNetwork' in values.keys():
+        values['diskoverNetwork'] = values.pop('discoverNetwork')
+    if 'discoverStorage' in values.keys():
+        values['diskoverStorage'] = values.pop('discoverStorage')
     # If this missing, we have already migrated
     if not 'appVolumeMounts' in values.keys():
         return values

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

@@ -137,7 +137,7 @@ questions:
             default: 568
             required: true
 
-  - variable: discoverNetwork
+  - variable: diskoverNetwork
     label: ""
     group: Network Configuration
     schema:
@@ -153,7 +153,7 @@ questions:
             max: 65535
             required: true
 
-  - variable: discoverStorage
+  - variable: diskoverStorage
     label: ""
     group: Storage Configuration
     schema: