Jelajahi Sumber

NAS-121368 (Minio)Add a default storage item and description on storage type (#1084)

* NAS-121368 Adds validation and a default storage item on MinIO

* add description on enum as well
Stavros Kois 2 tahun lalu
induk
melakukan
d177992b91

+ 1 - 1
library/ix-dev/enterprise/minio/Chart.yaml

@@ -3,7 +3,7 @@ description: High Performance, Kubernetes Native Object Storage
 annotations:
   title: MinIO
 type: application
-version: 1.0.1
+version: 1.0.2
 apiVersion: v2
 appVersion: '2023-03-24'
 kubeVersion: '>=1.16.0-0'

+ 8 - 3
library/ix-dev/enterprise/minio/questions.yaml

@@ -166,7 +166,9 @@ questions:
     group: Storage Configuration
     schema:
       type: list
-      default: []
+      default: [{"type": "ixVolume", "mountPath": "/data1", "datasetName": "data1"}]
+      empty: false
+      required: true
       items:
         - variable: item
           label: Storage Item
@@ -175,6 +177,9 @@ questions:
             attrs:
               - variable: type
                 label: Type
+                description: |
+                  ixVolume: Is dataset created automatically by the system.</br>
+                  Host Path: Is a path that already exists on the system.
                 schema:
                   type: string
                   immutable: true
@@ -182,9 +187,9 @@ questions:
                   default: ixVolume
                   enum:
                     - value: hostPath
-                      description: Host Path
+                      description: Host Path (Path that already exists on the system)
                     - value: ixVolume
-                      description: ixVolume
+                      description: ixVolume (Dataset created automatically by the system)
               - variable: mountPath
                 label: Mount Path
                 description: The path inside the container to mount the storage.