ソースを参照

Update ipfs chart to use new format for storage volumes

Waqar Ahmed 4 年 前
コミット
88bda7e5e9
1 ファイル変更70 行追加66 行削除
  1. 70 66
      test/ipfs/1.0.1/questions.yaml

+ 70 - 66
test/ipfs/1.0.1/questions.yaml

@@ -121,75 +121,79 @@ questions:
             default: 9880
             required: true
 
-
-  - variable: ipfsDataHostPathEnabled
-    label: "Configure Host Path for IPFS data"
-    group: "Storage"
-    schema:
-      type: boolean
-      default: false
-      show_subquestions_if: true
-      subquestions:
-        - variable: ipfsDataHostPath
-          label: "Specify HostPath for IPFS data"
-          schema:
-            type: hostpath
-
-  - variable: ipfsDataVolume
-    label: "IPFS Data Volume Defaults"
-    group: "Storage"
-    schema:
-      type: dict
-      $ref:
-        - "normalize/ixVolume"
-      show_if: [["ipfsDataHostPathEnabled", "=", false]]
-      attrs:
-        - variable: mountPath
-          label: "Mount Path"
-          description: "Path where the volume will be mounted inside the pod"
-          schema:
-            type: path
-            editable: false
-            default: "/data/ipfs"
-        - variable: datasetName
-          label: "IPFS Data Dataset Name"
-          schema:
-            type: string
-            default: "ix-ipfs-data"
-            editable: false
-
-  - variable: ipfsStagingHostPathEnabled
-    label: "Configure Host Path for IPFS staging data"
-    group: "Storage"
-    schema:
-      type: boolean
-      default: false
-      show_subquestions_if: true
-      subquestions:
-        - variable: ipfsStagingHostPath
-          label: "Specify HostPath for IPFS staging data"
-          schema:
-            type: hostpath
-
-  - variable: ipfsStagingVolume
-    label: "IPFS Staging Volume Defaults"
+  - variable: appVolumeMounts
+    label: "IPFS Storage"
     group: "Storage"
     schema:
       type: dict
-      $ref:
-        - "normalize/ixVolume"
-      show_if: [["ipfsStagingHostPathEnabled", "=", false]]
       attrs:
-        - variable: mountPath
-          label: "Mount Path"
-          description: "Path where the volume will be mounted inside the pod"
+        - variable: staging
+          label: "Staging Volume"
           schema:
-            type: path
-            editable: false
-            default: "/export"
-        - variable: datasetName
-          label: "IPFS Staging Dataset Name"
+            type: dict
+            $ref:
+              - "normalize/ixVolume"
+            attrs:
+              - variable: datasetName
+                label: "IPFS Staging Volume Dataset Name"
+                schema:
+                  type: string
+                  $ref:
+                    - "normalize/ixVolume"
+                  show_if: [["hostPathEnabled", "=", false ]]
+                  default: "ix-ipfs-staging"
+                  editable: false
+              - variable: mountPath
+                label: "Mount Path"
+                description: "Path where the volume will be mounted inside the pod"
+                schema:
+                  type: path
+                  editable: false
+                  default: "/export"
+              - variable: hostPathEnabled
+                label: "host Path Enabled"
+                schema:
+                  type: boolean
+                  default: false
+                  show_subquestions_if: true
+                  subquestions:
+                    - variable: hostPath
+                      label: "Host Path"
+                      schema:
+                        type: hostpath
+                        required: true
+        - variable: data
+          label: "Data Volume"
           schema:
-            type: string
-            default: "ix-ipfs-staging"
-            editable: false
+            type: dict
+            $ref:
+              - "normalize/ixVolume"
+            attrs:
+              - variable: datasetName
+                label: "IPFS Data Volume Dataset Name"
+                schema:
+                  type: string
+                  $ref:
+                    - "normalize/ixVolume"
+                  show_if: [["hostPathEnabled", "=", false]]
+                  default: "ix-ipfs-data"
+                  editable: false
+              - variable: mountPath
+                label: "Mount Path"
+                description: "Path where the volume will be mounted inside the pod"
+                schema:
+                  type: path
+                  editable: false
+                  default: "/data/ipfs"
+              - variable: hostPathEnabled
+                label: "host Path Enabled"
+                schema:
+                  type: boolean
+                  default: false
+                  show_subquestions_if: true
+                  subquestions:
+                    - variable: hostPath
+                      label: "Host Path"
+                      schema:
+                        type: hostpath
+                        required: true