Explorar el Código

Add readOnly option on additional storage and originals (#1860)

Stavros Kois hace 1 año
padre
commit
6626094ba1

+ 1 - 1
library/ix-dev/charts/photoprism/Chart.yaml

@@ -3,7 +3,7 @@ description: AI-powered app for browsing, organizing & sharing your photo collec
 annotations:
   title: PhotoPrism
 type: application
-version: 1.1.1
+version: 1.1.2
 apiVersion: v2
 appVersion: '231128'
 kubeVersion: '>=1.16.0-0'

+ 12 - 0
library/ix-dev/charts/photoprism/questions.yaml

@@ -159,6 +159,12 @@ questions:
                   hidden: true
                   editable: true
                   default: "/photoprism/originals"
+              - variable: readOnly
+                label: "Read Only"
+                description: "Mount volume as read only"
+                schema:
+                  type: boolean
+                  default: false
               - variable: hostPathEnabled
                 label: "Enable Custom Host Path for Photo Prism Original Storage Volume"
                 schema:
@@ -260,6 +266,12 @@ questions:
                 schema:
                   type: path
                   required: true
+              - variable: readOnly
+                label: "Read Only"
+                description: "Mount volume as read only"
+                schema:
+                  type: boolean
+                  default: false
               - variable: hostPath
                 label: "Host Path"
                 description: "Host path"

+ 1 - 0
library/ix-dev/charts/photoprism/templates/deployment.yaml

@@ -43,6 +43,7 @@ spec:
           {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
             - name: extrappvolume-{{ $index }}
               mountPath: {{ $hostPathConfiguration.mountPath }}
+              readOnly: {{ $hostPathConfiguration.readOnly | default false }}
           {{ end }}
           ports:
             - name: web