Просмотр исходного кода

Switch to list type for Environment, so that UI can render properly

Kris Moore 4 лет назад
Родитель
Сommit
08cb423c92
1 измененных файлов с 18 добавлено и 3 удалено
  1. 18 3
      charts/ipfs/1.0.0/questions.yaml

+ 18 - 3
charts/ipfs/1.0.0/questions.yaml

@@ -71,9 +71,24 @@ questions:
     label: "IPFS image environment"
     group: "IPFS Configuration"
     schema:
-      type: dict
-      additional_attrs: true
-      attrs: []
+      type: list
+      default: []
+      items:
+        - variable: environmentVariable
+          label: "Environment Variable"
+          schema:
+            type: dict
+            attrs:
+              - variable: name
+                label: "Name"
+                schema:
+                  type: string
+                  required: true
+              - variable: value
+                label: "Value"
+                schema:
+                  type: string
+                  required: true
 
   - variable: service
     description: "IPFS Service Configuration"