Ver Fonte

Add support for machinaris UI

sonicaj há 4 anos atrás
pai
commit
872c96337c

+ 21 - 8
test/machinaris/1.0.0/questions.yaml

@@ -1,4 +1,8 @@
 groups:
+  - name: "Networking"
+    description: "Configure Networking for Machinaris"
+  - name: "Machinaris Configuration"
+    description: "Machinaris configuration"
   - name: "Storage"
     description: "Configure Storage for Machinaris"
   - name: "Machinaris Environment Variables"
@@ -11,18 +15,27 @@ portals:
     host:
       - "$node_ip"
     ports:
-      - "$variable-plexServiceTCP.port"
+      - "$variable-machinaris_ui_port"
     path: "/web"
 
 questions:
   - variable: timezone
     label: "Configure timezone"
-    group: "Farmr.net Configuration"
-    description: "Configure 'farmr.net' support for chia"
+    group: "Configuration"
+    description: "Configure timezone for machinaris"
     schema:
       type: string
       $ref:
         - "definitions/timezone"
+  - variable: machinaris_ui_port
+    label: "Machinaris Web UI"
+    group: "Networking"
+    description: "Web UI Port for Machinaris"
+    schema:
+      type: int
+      min: 9000
+      max: 65535
+      default: 9003
   - variable: appVolumeMounts
     label: "Machinaris Storage"
     group: "Storage"
@@ -101,14 +114,14 @@ questions:
                         required: true
 
   - variable: extraAppVolumeMounts
-    label: "Chia Extra Host Path Volumes"
+    label: "Machinaris 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: "Machinaris Host Path Volume"
+          description: "Add an extra host path volume for machinaris application"
           schema:
             type: dict
             attrs:
@@ -126,8 +139,8 @@ questions:
                   required: true
 
   - variable: environmentVariables
-    label: "Environment Variables for Chia"
-    group: "Chia Environment Variables"
+    label: "Environment Variables for Machinaris"
+    group: "Machinaris Environment Variables"
     schema:
       type: list
       default: []

+ 6 - 0
test/machinaris/1.0.0/templates/service.yaml

@@ -0,0 +1,6 @@
+{{ $svc := .Values }}
+{{ $ports := list }}
+{{ $ports = mustAppend $ports (dict "name" "pms" "port" $svc.machinaris_ui_port "nodePort" $svc.machinaris_ui_port "targetPort" "machinaris-ui") }}
+{{ $params := . }}
+{{ $_ := set $params "commonService" (dict "ports" $ports "type" "NodePort" ) }}
+{{ include "common.classes.service" $params }}

+ 1 - 0
test/machinaris/1.0.0/test_values.yaml

@@ -11,3 +11,4 @@ image:
   repository: ghcr.io/guydavis/machinaris
   tag: v0.5.1
 updateStrategy: Recreate
+machinaris_ui_port: 9003