浏览代码

Clean questions.yaml allowing configuring env variables/storage for collabora

sonicaj 4 年之前
父节点
当前提交
9a884604e0
共有 2 个文件被更改,包括 11 次插入104 次删除
  1. 10 103
      test/collabora/1.0.0/questions.yaml
  2. 1 1
      test/collabora/1.0.0/templates/deployment.yaml

+ 10 - 103
test/collabora/1.0.0/questions.yaml

@@ -1,122 +1,29 @@
 groups:
   - name: "Storage"
-    description: "Configure Storage for Chia"
-  - name: "Farmr.net Configuration"
-    description: "Configure farmr.net support"
-  - name: "Chia Environment Variables"
+    description: "Configure Storage for Collabora"
+  - name: "Collabora Environment Variables"
     description: "Set the environment that will be visible to the container"
 
 portals:
   web_portal:
     protocols:
-      - "https"
+      - "http"
     host:
-      - "www.truepool.io"
+      - "$node_ip"
     ports:
       - "9980"
-    path: "/kb/truepool-docker-image/"
+    path: "/loleaflet/dist/admin/admin.html"
 
 questions:
-  - variable: farmr_env
-    label: "Enable 'farmr.net' support"
-    group: "Farmr.net Configuration"
-    description: "Configure 'farmr.net' support for chia"
-    schema:
-      type: string
-      default: "off"
-      enum:
-        - value: "off"
-          description: "OFF"
-        - value: "farmer"
-          description: "FARMER"
-        - value: "harvester"
-          description: "HARVESTER"
-  - variable: appVolumeMounts
-    label: "Chia Storage"
-    group: "Storage"
-    schema:
-      type: dict
-      attrs:
-        - variable: config
-          label: "Configuration Volume"
-          schema:
-            type: dict
-            attrs:
-              - variable: datasetName
-                label: "Configuration Volume Dataset Name"
-                schema:
-                  type: string
-                  hidden: true
-                  $ref:
-                    - "normalize/ixVolume"
-                  show_if: [["hostPathEnabled", "=", false]]
-                  default: "config"
-                  editable: false
-              - variable: mountPath
-                label: "Configuration Mount Path"
-                description: "Path where the volume will be mounted inside the pod"
-                schema:
-                  type: path
-                  hidden: true
-                  editable: true
-                  default: "/data"
-              - variable: hostPathEnabled
-                label: "Enable Custom Host Path for Chia Configuration Volume"
-                schema:
-                  type: boolean
-                  default: false
-                  show_subquestions_if: true
-                  subquestions:
-                    - variable: hostPath
-                      label: "Host Path for Chia Configuration Volume"
-                      schema:
-                        type: hostpath
-                        required: true
-        - variable: plots
-          label: "Plot Volume"
-          schema:
-            type: dict
-            attrs:
-              - variable: datasetName
-                label: "Plots Volume Name"
-                schema:
-                  type: string
-                  hidden: true
-                  $ref:
-                    - "normalize/ixVolume"
-                  show_if: [["hostPathEnabled", "=", false]]
-                  default: "plots"
-                  editable: false
-              - variable: mountPath
-                label: "Plots Mount Path"
-                description: "Path where the volume will be mounted inside the pod"
-                schema:
-                  type: path
-                  hidden: true
-                  editable: false
-                  default: "/plots"
-              - variable: hostPathEnabled
-                label: "Enable Custom Host Path for Chia Plots Volume"
-                schema:
-                  type: boolean
-                  default: false
-                  show_subquestions_if: true
-                  subquestions:
-                    - variable: hostPath
-                      label: "Host Path for Chia Plots Volume"
-                      schema:
-                        type: hostpath
-                        required: true
-
   - variable: extraAppVolumeMounts
-    label: "Chia Extra Host Path Volumes"
+    label: "Collabora Extra Host Path Volumes"
     group: "Storage"
     schema:
       type: list
       items:
         - variable: extraAppVolume
-          label: "Chia Host Path Volume"
-          description: "Add an extra host path volume for chia application"
+          label: "Collabora Host Path Volume"
+          description: "Add an extra host path volume for Collabora application"
           schema:
             type: dict
             attrs:
@@ -134,8 +41,8 @@ questions:
                   required: true
 
   - variable: environmentVariables
-    label: "Environment Variables for Chia"
-    group: "Chia Environment Variables"
+    label: "Environment Variables for Collabora"
+    group: "Collabora Environment Variables"
     schema:
       type: list
       default: []

+ 1 - 1
test/collabora/1.0.0/templates/deployment.yaml

@@ -24,7 +24,7 @@ spec:
           {{ end }}
           {{ end }}
           ports:
-            - name: chia-network
+            - name: collabora
               protocol: TCP
               containerPort: 9980
           {{ $envList := (default list .Values.environmentVariables) }}