From 19cb90701ee9440fd98024881c118985f3277fb9 Mon Sep 17 00:00:00 2001
From: Ryan Holt <ryan@ryanholt.net>
Date: Mon, 30 Nov 2020 16:42:46 -0500
Subject: [PATCH 01/10] initial commit for base photoprism files

Signed-off-by: Ryan Holt <ryan@ryanholt.net>
---
 charts/photoprism/Chart.yaml            | 22 +++++++
 charts/photoprism/OWNERS                |  8 +++
 charts/photoprism/README.md             | 78 +++++++++++++++++++++++++
 charts/photoprism/ci/ct-values.yaml     |  2 +
 charts/photoprism/templates/NOTES.txt   |  1 +
 charts/photoprism/templates/common.yaml |  1 +
 charts/photoprism/values.yaml           | 24 ++++++++
 7 files changed, 136 insertions(+)
 create mode 100644 charts/photoprism/Chart.yaml
 create mode 100644 charts/photoprism/OWNERS
 create mode 100644 charts/photoprism/README.md
 create mode 100644 charts/photoprism/ci/ct-values.yaml
 create mode 100644 charts/photoprism/templates/NOTES.txt
 create mode 100644 charts/photoprism/templates/common.yaml
 create mode 100644 charts/photoprism/values.yaml

diff --git a/charts/photoprism/Chart.yaml b/charts/photoprism/Chart.yaml
new file mode 100644
index 00000000..0194a80e
--- /dev/null
+++ b/charts/photoprism/Chart.yaml
@@ -0,0 +1,22 @@
+apiVersion: v2
+appVersion: master
+description: PhotoPrism® is a server-based application for browsing, organizing and sharing your personal photo collection
+name: photoprism
+version: 1.0.0
+keywords:
+  - photos
+  - photoprism
+  - pictures
+  - sharing
+home: https://github.com/k8s-at-home/charts/tree/master/charts/photoprism
+icon: https://demo.photoprism.org/static/img/logo-avatar.svg
+sources:
+  - https://github.com/photoprism/photoprism
+  - https://hub.docker.com/r/photoprism/photoprism
+maintainers:
+  - name: billimek
+    email: jeff@billimek.com
+dependencies:
+  - name: common
+    repository: https://k8s-at-home.com/charts/
+    version: 1.7.0
diff --git a/charts/photoprism/OWNERS b/charts/photoprism/OWNERS
new file mode 100644
index 00000000..1ce35762
--- /dev/null
+++ b/charts/photoprism/OWNERS
@@ -0,0 +1,8 @@
+approvers:
+- billimek
+- onedr0p
+- bjw-s
+reviewers:
+- billimek
+- onedr0p
+- bjw-s
diff --git a/charts/photoprism/README.md b/charts/photoprism/README.md
new file mode 100644
index 00000000..c6d8a11b
--- /dev/null
+++ b/charts/photoprism/README.md
@@ -0,0 +1,78 @@
+# Photoprism
+
+This is a helm chart for [PhotoPrism](https://github.com/photoprism/photoprism).
+
+**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/k8s-at-home/charts/issues/new/choose)**
+
+## TL;DR;
+
+```shell
+$ helm repo add k8s-at-home https://k8s-at-home.com/charts/
+$ helm install k8s-at-home/sonarr
+```
+
+## Installing the Chart
+
+To install the chart with the release name `my-release`:
+
+```console
+helm install --name my-release k8s-at-home/photoprism
+```
+
+## Uninstalling the Chart
+
+To uninstall/delete the `my-release` deployment:
+
+```console
+helm delete my-release --purge
+```
+
+The command removes all the Kubernetes components associated with the chart and deletes the release.
+
+## Configuration
+Read through the charts [values.yaml](https://github.com/k8s-at-home/charts/blob/master/charts/photoprism/values.yaml)
+file. It has several commented out suggested values.
+Additionally you can take a look at the common library [values.yaml](https://github.com/k8s-at-home/charts/blob/master/charts/common/values.yaml) for more (advanced) configuration options.
+
+Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
+```console
+helm install photoprism \
+  --set env.TZ="America/New_York" \
+    k8s-at-home/sonarr
+```
+Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the
+chart. For example,
+```console
+helm install sonarr k8s-at-home/photoprism --values values.yaml 
+```
+
+```yaml
+image:
+  tag: ...
+```
+
+---
+**NOTE**
+
+If you get
+```console
+Error: rendered manifests contain a resource that already exists. Unable to continue with install: existing resource conflict: ...`
+```
+it may be because you uninstalled the chart with `skipuninstall` enabled, you need to manually delete the pvc or use `existingClaim`.
+
+---
+
+## Upgrading an existing Release to a new major version
+
+A major chart version change (like 4.0.1 -> 5.0.0) indicates that there is an incompatible breaking change potentially needing manual actions.
+
+### Upgrading from 6.x.x to 7.x.x
+
+Due to migrating to a centralized common library some values in `values.yaml` have changed.
+
+Examples:
+
+* `service.port` has been moved to `service.port.port`.
+* `persistence.type` has been moved to `controllerType`.
+
+Refer to the library values.yaml for more configuration options.
diff --git a/charts/photoprism/ci/ct-values.yaml b/charts/photoprism/ci/ct-values.yaml
new file mode 100644
index 00000000..f6ccc628
--- /dev/null
+++ b/charts/photoprism/ci/ct-values.yaml
@@ -0,0 +1,2 @@
+ingress:
+  enabled: true
diff --git a/charts/photoprism/templates/NOTES.txt b/charts/photoprism/templates/NOTES.txt
new file mode 100644
index 00000000..90f7b653
--- /dev/null
+++ b/charts/photoprism/templates/NOTES.txt
@@ -0,0 +1 @@
+{{- include "common.notes.defaultNotes" . -}}
diff --git a/charts/photoprism/templates/common.yaml b/charts/photoprism/templates/common.yaml
new file mode 100644
index 00000000..a6613c2c
--- /dev/null
+++ b/charts/photoprism/templates/common.yaml
@@ -0,0 +1 @@
+{{ include "common.all" . }}
diff --git a/charts/photoprism/values.yaml b/charts/photoprism/values.yaml
new file mode 100644
index 00000000..1ce60e57
--- /dev/null
+++ b/charts/photoprism/values.yaml
@@ -0,0 +1,24 @@
+# Default values for PhotoPrism.
+
+image:
+  repository: photoprism/photoprism
+  pullPolicy: IfNotPresent
+  tag: "20201122"
+
+strategy:
+  type: Recreate
+
+service:
+  port:
+    port: 2342
+
+env: {}
+  # PHOTOPRISM_SITE_URL: https://photos.mydomain.com
+  # PHOTOPRISM_SITE_TITLE: My Photos
+  # PHOTOPRISM_SITE_CAPTION: My Awesome Photos!
+  # PHOTOPRISM_SITE_DESCRIPTION: This Page hosts pictures for my friends and family!
+
+persistence:
+  config:
+    enabled: false
+    emptyDir: false

From d4dd34a24b652593f5177b4324beb22e25de4073 Mon Sep 17 00:00:00 2001
From: Ryan Holt <ryan@ryanholt.net>
Date: Mon, 30 Nov 2020 17:02:16 -0500
Subject: [PATCH 02/10] add some additional photoprism default values and
 mounts

Signed-off-by: Ryan Holt <ryan@ryanholt.net>
---
 charts/photoprism/values.yaml | 56 +++++++++++++++++++++++++++++++----
 1 file changed, 51 insertions(+), 5 deletions(-)

diff --git a/charts/photoprism/values.yaml b/charts/photoprism/values.yaml
index 1ce60e57..86106b47 100644
--- a/charts/photoprism/values.yaml
+++ b/charts/photoprism/values.yaml
@@ -13,12 +13,58 @@ service:
     port: 2342
 
 env: {}
-  # PHOTOPRISM_SITE_URL: https://photos.mydomain.com
-  # PHOTOPRISM_SITE_TITLE: My Photos
-  # PHOTOPRISM_SITE_CAPTION: My Awesome Photos!
-  # PHOTOPRISM_SITE_DESCRIPTION: This Page hosts pictures for my friends and family!
+  # PHOTOPRISM_ADMIN_PASSWORD: "please-change"     # Initial admin password: PLEASE CHANGE!
+  # PHOTOPRISM_DEBUG: "false"                      # Run in debug mode (shows additional log messages)
+  # PHOTOPRISM_PUBLIC: "false"                     # No authentication required (disables password protection)
+  # PHOTOPRISM_READONLY: "false"                   # Don't modify originals directory (reduced functionality)
+  # PHOTOPRISM_UPLOAD_NSFW: "true"                 # Allow uploads that MAY be offensive
+  # PHOTOPRISM_DETECT_NSFW: "false"                # Flag photos as private that MAY be offensive
+  # PHOTOPRISM_EXPERIMENTAL: "false"               # Enable experimental features
+  # PHOTOPRISM_SITE_URL: "http://localhost:2342/"  # Canonical / public site URL
+  # PHOTOPRISM_SITE_TITLE: "PhotoPrism"
+  # PHOTOPRISM_SITE_CAPTION: "Browse Your Life"
+  # PHOTOPRISM_SITE_DESCRIPTION: ""
+  # PHOTOPRISM_SITE_AUTHOR: ""
+  # PHOTOPRISM_HTTP_HOST: "0.0.0.0"
+  # PHOTOPRISM_HTTP_PORT: 2342
+  # PHOTOPRISM_SETTINGS_HIDDEN: "false"            # Users can not view or change settings
+  # PHOTOPRISM_DATABASE_DRIVER: "sqlite"           # SQLite is an embedded database that doesn't require a server
+  # PHOTOPRISM_DATABASE_DRIVER: "mysql"            # Use MariaDB (or MySQL) instead of SQLite for improved performance
+  # PHOTOPRISM_DATABASE_DSN: "photoprism:insecure@tcp(mariadb:3306)/photoprism?charset=utf8mb4,utf8&parseTime=true"
+  # PHOTOPRISM_SIDECAR_JSON: "true"                # Automatically create JSON sidecar files using Exiftool
+  # PHOTOPRISM_SIDECAR_YAML: "true"                # Automatically backup metadata to YAML sidecar files
+  # PHOTOPRISM_THUMB_FILTER: "lanczos"             # Resample filter, best to worst: blackman, lanczos, cubic, linear
+  # PHOTOPRISM_THUMB_UNCACHED: "false"             # Enable on-demand thumbnail rendering (high memory and cpu usage)
+  # PHOTOPRISM_THUMB_SIZE: 2048                    # Pre-rendered thumbnail size limit (default 2048, min 720, max 7680)
+  # # PHOTOPRISM_THUMB_SIZE: 4096                  # Retina 4K, DCI 4K (requires more storage); 7680 for 8K Ultra HD
+  # PHOTOPRISM_THUMB_SIZE_UNCACHED: 7680           # On-demand rendering size limit (default 7680, min 720, max 7680)
+  # PHOTOPRISM_JPEG_SIZE: 7680                     # Size limit for converted image files in pixels (720-30000)
+  # PHOTOPRISM_JPEG_QUALITY: 92                    # Set to 95 for high-quality thumbnails (25-100)
+  # PHOTOPRISM_DARKTABLE_PRESETS: "false"          # Use darktable presets (disables concurrent raw to jpeg conversion)
+  # # You may optionally set user, group and/or file permissions using environment variables:
+  # UID: 1000
+  # GID: 1000
+  # UMASK: 0000
 
 persistence:
-  config:
+  storage:
     enabled: false
     emptyDir: false
+    mountPath: /photoprism/storage
+
+  originals:
+    enabled: false
+    emptyDir: false
+    mountPath: /photoprism/originals
+    ## Persistent Volume Storage Class
+    ## If defined, storageClassName: <storageClass>
+    ## If set to "-", storageClassName: "", which disables dynamic provisioning
+    ## If undefined (the default) or set to null, no storageClassName spec is
+    ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
+    ##   GKE, AWS & OpenStack)
+    # storageClass: "-"
+    # accessMode: ReadWriteOnce
+    # size: 1Gi
+    ## Do not delete the pvc upon helm uninstall
+    # skipuninstall: false
+    # existingClaim: ""

From a4c913aef6766eda0a5871644d0d53b25bd42a5b Mon Sep 17 00:00:00 2001
From: Ryan Holt <ryan@ryanholt.net>
Date: Mon, 30 Nov 2020 17:23:45 -0500
Subject: [PATCH 03/10] revert from originals to config pv name

Signed-off-by: Ryan Holt <ryan@ryanholt.net>
---
 charts/photoprism/values.yaml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/charts/photoprism/values.yaml b/charts/photoprism/values.yaml
index 86106b47..febe2a8e 100644
--- a/charts/photoprism/values.yaml
+++ b/charts/photoprism/values.yaml
@@ -47,15 +47,15 @@ env: {}
   # UMASK: 0000
 
 persistence:
-  storage:
+  config:
     enabled: false
     emptyDir: false
     mountPath: /photoprism/storage
 
-  originals:
-    enabled: false
-    emptyDir: false
-    mountPath: /photoprism/originals
+  # originals:
+  #   enabled: false
+  #   emptyDir: false
+  #   mountPath: /photoprism/originals
     ## Persistent Volume Storage Class
     ## If defined, storageClassName: <storageClass>
     ## If set to "-", storageClassName: "", which disables dynamic provisioning

From 31e992eb4afeb5bc2d1e6cf46a28aeb0b2b4b479 Mon Sep 17 00:00:00 2001
From: Ryan Holt <ryan@ryanholt.net>
Date: Mon, 30 Nov 2020 17:43:47 -0500
Subject: [PATCH 04/10] add sample originals mount

Signed-off-by: Ryan Holt <ryan@ryanholt.net>
---
 charts/photoprism/values.yaml | 24 ++++++++----------------
 1 file changed, 8 insertions(+), 16 deletions(-)

diff --git a/charts/photoprism/values.yaml b/charts/photoprism/values.yaml
index febe2a8e..cefd300b 100644
--- a/charts/photoprism/values.yaml
+++ b/charts/photoprism/values.yaml
@@ -52,19 +52,11 @@ persistence:
     emptyDir: false
     mountPath: /photoprism/storage
 
-  # originals:
-  #   enabled: false
-  #   emptyDir: false
-  #   mountPath: /photoprism/originals
-    ## Persistent Volume Storage Class
-    ## If defined, storageClassName: <storageClass>
-    ## If set to "-", storageClassName: "", which disables dynamic provisioning
-    ## If undefined (the default) or set to null, no storageClassName spec is
-    ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
-    ##   GKE, AWS & OpenStack)
-    # storageClass: "-"
-    # accessMode: ReadWriteOnce
-    # size: 1Gi
-    ## Do not delete the pvc upon helm uninstall
-    # skipuninstall: false
-    # existingClaim: ""
+  # additionalVolumeMounts:
+  # - name: originals
+  #   mountPath: "/photoprism/originals"
+  #   readOnly: true
+  # additionalVolumes:
+  # - name: originals
+  #   persistentVolumeClaim:
+  #     claimName: nfs-pictures-pvc
\ No newline at end of file

From bca5078de2b1f6640f6d12a0e7a468324d40b27f Mon Sep 17 00:00:00 2001
From: Ryan Holt <ryan@ryanholt.net>
Date: Mon, 30 Nov 2020 17:45:41 -0500
Subject: [PATCH 05/10] add newline

Signed-off-by: Ryan Holt <ryan@ryanholt.net>
---
 charts/photoprism/values.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/charts/photoprism/values.yaml b/charts/photoprism/values.yaml
index cefd300b..44f2ada9 100644
--- a/charts/photoprism/values.yaml
+++ b/charts/photoprism/values.yaml
@@ -59,4 +59,4 @@ persistence:
   # additionalVolumes:
   # - name: originals
   #   persistentVolumeClaim:
-  #     claimName: nfs-pictures-pvc
\ No newline at end of file
+  #     claimName: nfs-pictures-pvc

From 6cf224d0b0dc0afda6333599743cc4b867f7b40c Mon Sep 17 00:00:00 2001
From: Ryan Holt <ryan@ryanholt.net>
Date: Mon, 30 Nov 2020 17:48:06 -0500
Subject: [PATCH 06/10] add more readme details

Signed-off-by: Ryan Holt <ryan@ryanholt.net>
---
 charts/photoprism/README.md | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/charts/photoprism/README.md b/charts/photoprism/README.md
index c6d8a11b..0322725b 100644
--- a/charts/photoprism/README.md
+++ b/charts/photoprism/README.md
@@ -4,6 +4,8 @@ This is a helm chart for [PhotoPrism](https://github.com/photoprism/photoprism).
 
 **This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/k8s-at-home/charts/issues/new/choose)**
 
+This chart requires heavy customization of the `env: {}` block within values.yaml to configure the service to operate properly. See the PhotoPrism [documentation](https://docs.photoprism.org/getting-started/config-options/) for available config options.
+
 ## TL;DR;
 
 ```shell

From df1a3f48e035eab07a3fe5e856027fbe82837f5c Mon Sep 17 00:00:00 2001
From: Ryan Holt <ryan@ryanholt.net>
Date: Tue, 1 Dec 2020 08:38:22 -0500
Subject: [PATCH 07/10] various changes per @onedr0p comments

Signed-off-by: Ryan Holt <ryan@ryanholt.net>
---
 charts/photoprism/Chart.yaml  |  2 +-
 charts/photoprism/README.md   | 17 +++--------------
 charts/photoprism/values.yaml | 24 ++++++------------------
 3 files changed, 10 insertions(+), 33 deletions(-)

diff --git a/charts/photoprism/Chart.yaml b/charts/photoprism/Chart.yaml
index 0194a80e..9c190cd4 100644
--- a/charts/photoprism/Chart.yaml
+++ b/charts/photoprism/Chart.yaml
@@ -1,5 +1,5 @@
 apiVersion: v2
-appVersion: master
+appVersion: 20201122
 description: PhotoPrism® is a server-based application for browsing, organizing and sharing your personal photo collection
 name: photoprism
 version: 1.0.0
diff --git a/charts/photoprism/README.md b/charts/photoprism/README.md
index 0322725b..375b1133 100644
--- a/charts/photoprism/README.md
+++ b/charts/photoprism/README.md
@@ -10,7 +10,7 @@ This chart requires heavy customization of the `env: {}` block within values.yam
 
 ```shell
 $ helm repo add k8s-at-home https://k8s-at-home.com/charts/
-$ helm install k8s-at-home/sonarr
+$ helm install k8s-at-home/photoprism
 ```
 
 ## Installing the Chart
@@ -40,12 +40,12 @@ Specify each parameter using the `--set key=value[,key=value]` argument to `helm
 ```console
 helm install photoprism \
   --set env.TZ="America/New_York" \
-    k8s-at-home/sonarr
+    k8s-at-home/photoprism
 ```
 Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the
 chart. For example,
 ```console
-helm install sonarr k8s-at-home/photoprism --values values.yaml 
+helm install photoprism k8s-at-home/photoprism --values values.yaml 
 ```
 
 ```yaml
@@ -67,14 +67,3 @@ it may be because you uninstalled the chart with `skipuninstall` enabled, you ne
 ## Upgrading an existing Release to a new major version
 
 A major chart version change (like 4.0.1 -> 5.0.0) indicates that there is an incompatible breaking change potentially needing manual actions.
-
-### Upgrading from 6.x.x to 7.x.x
-
-Due to migrating to a centralized common library some values in `values.yaml` have changed.
-
-Examples:
-
-* `service.port` has been moved to `service.port.port`.
-* `persistence.type` has been moved to `controllerType`.
-
-Refer to the library values.yaml for more configuration options.
diff --git a/charts/photoprism/values.yaml b/charts/photoprism/values.yaml
index 44f2ada9..0858c9d5 100644
--- a/charts/photoprism/values.yaml
+++ b/charts/photoprism/values.yaml
@@ -17,30 +17,12 @@ env: {}
   # PHOTOPRISM_DEBUG: "false"                      # Run in debug mode (shows additional log messages)
   # PHOTOPRISM_PUBLIC: "false"                     # No authentication required (disables password protection)
   # PHOTOPRISM_READONLY: "false"                   # Don't modify originals directory (reduced functionality)
-  # PHOTOPRISM_UPLOAD_NSFW: "true"                 # Allow uploads that MAY be offensive
-  # PHOTOPRISM_DETECT_NSFW: "false"                # Flag photos as private that MAY be offensive
   # PHOTOPRISM_EXPERIMENTAL: "false"               # Enable experimental features
   # PHOTOPRISM_SITE_URL: "http://localhost:2342/"  # Canonical / public site URL
   # PHOTOPRISM_SITE_TITLE: "PhotoPrism"
   # PHOTOPRISM_SITE_CAPTION: "Browse Your Life"
   # PHOTOPRISM_SITE_DESCRIPTION: ""
   # PHOTOPRISM_SITE_AUTHOR: ""
-  # PHOTOPRISM_HTTP_HOST: "0.0.0.0"
-  # PHOTOPRISM_HTTP_PORT: 2342
-  # PHOTOPRISM_SETTINGS_HIDDEN: "false"            # Users can not view or change settings
-  # PHOTOPRISM_DATABASE_DRIVER: "sqlite"           # SQLite is an embedded database that doesn't require a server
-  # PHOTOPRISM_DATABASE_DRIVER: "mysql"            # Use MariaDB (or MySQL) instead of SQLite for improved performance
-  # PHOTOPRISM_DATABASE_DSN: "photoprism:insecure@tcp(mariadb:3306)/photoprism?charset=utf8mb4,utf8&parseTime=true"
-  # PHOTOPRISM_SIDECAR_JSON: "true"                # Automatically create JSON sidecar files using Exiftool
-  # PHOTOPRISM_SIDECAR_YAML: "true"                # Automatically backup metadata to YAML sidecar files
-  # PHOTOPRISM_THUMB_FILTER: "lanczos"             # Resample filter, best to worst: blackman, lanczos, cubic, linear
-  # PHOTOPRISM_THUMB_UNCACHED: "false"             # Enable on-demand thumbnail rendering (high memory and cpu usage)
-  # PHOTOPRISM_THUMB_SIZE: 2048                    # Pre-rendered thumbnail size limit (default 2048, min 720, max 7680)
-  # # PHOTOPRISM_THUMB_SIZE: 4096                  # Retina 4K, DCI 4K (requires more storage); 7680 for 8K Ultra HD
-  # PHOTOPRISM_THUMB_SIZE_UNCACHED: 7680           # On-demand rendering size limit (default 7680, min 720, max 7680)
-  # PHOTOPRISM_JPEG_SIZE: 7680                     # Size limit for converted image files in pixels (720-30000)
-  # PHOTOPRISM_JPEG_QUALITY: 92                    # Set to 95 for high-quality thumbnails (25-100)
-  # PHOTOPRISM_DARKTABLE_PRESETS: "false"          # Use darktable presets (disables concurrent raw to jpeg conversion)
   # # You may optionally set user, group and/or file permissions using environment variables:
   # UID: 1000
   # GID: 1000
@@ -52,6 +34,12 @@ persistence:
     emptyDir: false
     mountPath: /photoprism/storage
 
+  originals:
+    enabled: false
+    emptyDir: false
+    mountPath: "/photoprism/originals"
+    # readOnly: true
+
   # additionalVolumeMounts:
   # - name: originals
   #   mountPath: "/photoprism/originals"

From 6822d3c4b4ad70e4c8a24b644aad797ada4622f8 Mon Sep 17 00:00:00 2001
From: Ryan Holt <ryan@ryanholt.net>
Date: Tue, 1 Dec 2020 08:41:31 -0500
Subject: [PATCH 08/10] add a link to photoprism documentation within values

Signed-off-by: Ryan Holt <ryan@ryanholt.net>
---
 charts/photoprism/values.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/charts/photoprism/values.yaml b/charts/photoprism/values.yaml
index 0858c9d5..b28e4fb5 100644
--- a/charts/photoprism/values.yaml
+++ b/charts/photoprism/values.yaml
@@ -13,6 +13,7 @@ service:
     port: 2342
 
 env: {}
+  ## See other config options from PhotoPrism documentation: https://docs.photoprism.org/getting-started/config-options/
   # PHOTOPRISM_ADMIN_PASSWORD: "please-change"     # Initial admin password: PLEASE CHANGE!
   # PHOTOPRISM_DEBUG: "false"                      # Run in debug mode (shows additional log messages)
   # PHOTOPRISM_PUBLIC: "false"                     # No authentication required (disables password protection)

From 643db3e8cb385ad88ab3eb9bbbd4aeb4ac88ddb7 Mon Sep 17 00:00:00 2001
From: Ryan Holt <ryan@ryanholt.net>
Date: Tue, 1 Dec 2020 08:43:02 -0500
Subject: [PATCH 09/10] make appversion a string to pass CT tests

Signed-off-by: Ryan Holt <ryan@ryanholt.net>
---
 charts/photoprism/Chart.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/charts/photoprism/Chart.yaml b/charts/photoprism/Chart.yaml
index 9c190cd4..8bde5b05 100644
--- a/charts/photoprism/Chart.yaml
+++ b/charts/photoprism/Chart.yaml
@@ -1,5 +1,5 @@
 apiVersion: v2
-appVersion: 20201122
+appVersion: "20201122"
 description: PhotoPrism® is a server-based application for browsing, organizing and sharing your personal photo collection
 name: photoprism
 version: 1.0.0

From 9e2a21995ae8333a4d8842375ef43d602d8dfc40 Mon Sep 17 00:00:00 2001
From: Ryan Holt <ryan@ryanholt.net>
Date: Tue, 1 Dec 2020 09:06:58 -0500
Subject: [PATCH 10/10] add default values for photoprism's storage locations
 to env

Signed-off-by: Ryan Holt <ryan@ryanholt.net>
---
 charts/photoprism/values.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/charts/photoprism/values.yaml b/charts/photoprism/values.yaml
index b28e4fb5..cbd67a6f 100644
--- a/charts/photoprism/values.yaml
+++ b/charts/photoprism/values.yaml
@@ -12,7 +12,9 @@ service:
   port:
     port: 2342
 
-env: {}
+env:
+  PHOTOPRISM_STORAGE_PATH: /photoprism/storage
+  PHOTOPRISM_ORIGINALS_PATH: /photoprism/originals
   ## See other config options from PhotoPrism documentation: https://docs.photoprism.org/getting-started/config-options/
   # PHOTOPRISM_ADMIN_PASSWORD: "please-change"     # Initial admin password: PLEASE CHANGE!
   # PHOTOPRISM_DEBUG: "false"                      # Run in debug mode (shows additional log messages)