Browse Source

update questions and persistence

Stavros kois 1 năm trước cách đây
mục cha
commit
4532e1eb38

BIN
library/ix-dev/community/mealie/charts/common-1.2.2.tgz


+ 19 - 8
library/ix-dev/community/mealie/questions.yaml

@@ -196,7 +196,8 @@ questions:
                         type: string
                         required: true
                         immutable: true
-                        default: "storage_entry"
+                        hidden: true
+                        default: "data"
                     - variable: aclEntries
                       label: ACL Configuration
                       schema:
@@ -204,7 +205,7 @@ questions:
                         show_if: [["aclEnable", "=", true]]
                         attrs: []
               - variable: hostPathConfig
-                label: hostPathConfig
+                label: Host Path Configuration
                 schema:
                   type: dict
                   show_if: [["type", "=", "hostPath"]]
@@ -257,6 +258,8 @@ questions:
                 schema:
                   type: dict
                   show_if: [["type", "=", "ixVolume"]]
+                  # Nothing to show for the user
+                  hidden: true
                   $ref:
                     - "normalize/ixVolume"
                   attrs:
@@ -266,7 +269,8 @@ questions:
                       schema:
                         type: boolean
                         default: false
-                        # TODO: verify if ACL is working for postgres
+                        # Postgres does a CHMOD at startup
+                        # Which fails with ACL
                         hidden: true
                     - variable: datasetName
                       label: Dataset Name
@@ -275,6 +279,7 @@ questions:
                         type: string
                         required: true
                         immutable: true
+                        hidden: true
                         default: "pgData"
                     - variable: aclEntries
                       label: ACL Configuration
@@ -283,7 +288,7 @@ questions:
                         show_if: [["aclEnable", "=", true]]
                         attrs: []
               - variable: hostPathConfig
-                label: hostPathConfig
+                label: Host Path Configuration
                 schema:
                   type: dict
                   show_if: [["type", "=", "hostPath"]]
@@ -294,7 +299,8 @@ questions:
                       schema:
                         type: boolean
                         default: false
-                        # TODO: verify if ACL is working for postgres
+                        # Postgres does a CHMOD at startup
+                        # Which fails with ACL
                         hidden: true
                     - variable: acl
                       label: ACL Configuration
@@ -338,6 +344,8 @@ questions:
                 schema:
                   type: dict
                   show_if: [["type", "=", "ixVolume"]]
+                  # Nothing to show for the user
+                  hidden: true
                   $ref:
                     - "normalize/ixVolume"
                   attrs:
@@ -347,7 +355,8 @@ questions:
                       schema:
                         type: boolean
                         default: false
-                        # TODO: verify if ACL is working for postgres
+                        # Postgres does a CHMOD at startup
+                        # Which fails with ACL
                         hidden: true
                     - variable: datasetName
                       label: Dataset Name
@@ -356,6 +365,7 @@ questions:
                         type: string
                         required: true
                         immutable: true
+                        hidden: true
                         default: "pgBackup"
                     - variable: aclEntries
                       label: ACL Configuration
@@ -364,7 +374,7 @@ questions:
                         show_if: [["aclEnable", "=", true]]
                         attrs: []
               - variable: hostPathConfig
-                label: hostPathConfig
+                label: Host Path Configuration
                 schema:
                   type: dict
                   show_if: [["type", "=", "hostPath"]]
@@ -375,7 +385,8 @@ questions:
                       schema:
                         type: boolean
                         default: false
-                        # TODO: verify if ACL is working for postgres
+                        # Postgres does a CHMOD at startup
+                        # Which fails with ACL
                         hidden: true
                     - variable: acl
                       label: ACL Configuration

+ 2 - 2
library/ix-dev/community/mealie/templates/_persistence.tpl

@@ -2,7 +2,7 @@
 persistence:
   data:
     enabled: true
-    {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.mealieStorage.data) | nindent 2 }}
+    {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.mealieStorage.data) | nindent 4 }}
     targetSelector:
       mealie:
         mealie:
@@ -17,7 +17,7 @@ persistence:
   {{- range $idx, $storage := .Values.mealieStorage.additionalStorages }}
   {{ printf "mealie-%v:" (int $idx) }}
     enabled: true
-    {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 2 }}
+    {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
     targetSelector:
       mealie:
         mealie: