[photoprism] Migrate to common v3 (#980)

* [photoprism] Migrate to common v3

Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>

* Fix indenting

Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2021-06-11 19:29:55 +02:00 committed by GitHub
parent 527dd9fcc9
commit 0c589bf088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 68 additions and 55 deletions

View File

@ -1,8 +1,8 @@
apiVersion: v2 apiVersion: v2
appVersion: "20201122" appVersion: "20210523"
description: PhotoPrism® is a server-based application for browsing, organizing and sharing your personal photo collection description: PhotoPrism® is a server-based application for browsing, organizing and sharing your personal photo collection
name: photoprism name: photoprism
version: 4.4.0 version: 5.0.0
kubeVersion: ">=1.16.0-0" kubeVersion: ">=1.16.0-0"
keywords: keywords:
- photos - photos
@ -20,4 +20,4 @@ maintainers:
dependencies: dependencies:
- name: common - name: common
repository: https://library-charts.k8s-at-home.com repository: https://library-charts.k8s-at-home.com
version: 2.5.0 version: 3.0.2

View File

@ -1,6 +1,6 @@
# photoprism # photoprism
![Version: 4.4.0](https://img.shields.io/badge/Version-4.4.0-informational?style=flat-square) ![AppVersion: 20201122](https://img.shields.io/badge/AppVersion-20201122-informational?style=flat-square) ![Version: 5.0.0](https://img.shields.io/badge/Version-5.0.0-informational?style=flat-square) ![AppVersion: 20210523](https://img.shields.io/badge/AppVersion-20210523-informational?style=flat-square)
PhotoPrism® is a server-based application for browsing, organizing and sharing your personal photo collection PhotoPrism® is a server-based application for browsing, organizing and sharing your personal photo collection
@ -19,7 +19,7 @@ Kubernetes: `>=1.16.0-0`
| Repository | Name | Version | | Repository | Name | Version |
|------------|------|---------| |------------|------|---------|
| https://library-charts.k8s-at-home.com | common | 2.5.0 | | https://library-charts.k8s-at-home.com | common | 3.0.2 |
## TL;DR ## TL;DR
@ -76,20 +76,21 @@ N/A
| Key | Type | Default | Description | | Key | Type | Default | Description |
|-----|------|---------|-------------| |-----|------|---------|-------------|
| env.PHOTOPRISM_ORIGINALS_PATH | string | `"/photoprism/originals"` | | | env | object | See below | environment variables. See [image docs](https://docs.photoprism.org/getting-started/config-options/) for more details. |
| env.PHOTOPRISM_STORAGE_PATH | string | `"/photoprism/storage"` | | | env.GID | string | `nil` | Sets GID Photoprism runs under. |
| image.pullPolicy | string | `"IfNotPresent"` | | | env.PHOTOPRISM_ADMIN_PASSWORD | string | `"please-change"` | Initial admin password. **BE SURE TO CHANGE THIS!** |
| image.repository | string | `"photoprism/photoprism"` | | | env.PHOTOPRISM_ORIGINALS_PATH | string | `"/photoprism/originals"` | Photoprism originals path |
| image.tag | string | `"20201122"` | | | env.PHOTOPRISM_PUBLIC | string | `"false"` | Disable authentication / password protection |
| ingress.enabled | bool | `false` | | | env.PHOTOPRISM_STORAGE_PATH | string | `"/photoprism/storage"` | Photoprism storage path |
| persistence.config.emptyDir.enabled | bool | `false` | | | env.TZ | string | `"UTC"` | Set the container timezone |
| persistence.config.enabled | bool | `false` | | | env.UID | string | `nil` | Sets UID Photoprism runs under. |
| persistence.config.mountPath | string | `"/photoprism/storage"` | | | env.UMASK | string | `nil` | Sets UMASK. |
| persistence.originals.emptyDir.enabled | bool | `false` | | | image.pullPolicy | string | `"IfNotPresent"` | image pull policy |
| persistence.originals.enabled | bool | `false` | | | image.repository | string | `"photoprism/photoprism"` | image repository |
| persistence.originals.mountPath | string | `"/photoprism/originals"` | | | image.tag | string | `"20210523"` | image tag |
| service.port.port | int | `2342` | | | ingress.main | object | See values.yaml | Enable and configure ingress settings for the chart under this key. |
| strategy.type | string | `"Recreate"` | | | persistence | object | See values.yaml | Configure persistence settings for the chart under this key. |
| service | object | See values.yaml | Configures service settings for the chart. |
## Changelog ## Changelog
@ -97,6 +98,14 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [5.0.0]
#### Changed
- **BREAKING**: Upgraded the common library dependency to version 3.0.2. This introduces several breaking changes (`service`, `ingress` and `persistence` keys have been refactored).
Be sure to check out the [library chart](https://github.com/k8s-at-home/library-charts/blob/common-3.0.2/charts/stable/common/) for the up-to-date values.
- Changed image tag to `20210523`.
### [1.0.0] ### [1.0.0]
#### Added #### Added

View File

@ -9,6 +9,14 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [5.0.0]
#### Changed
- **BREAKING**: Upgraded the common library dependency to version 3.0.2. This introduces several breaking changes (`service`, `ingress` and `persistence` keys have been refactored).
Be sure to check out the [library chart](https://github.com/k8s-at-home/library-charts/blob/common-3.0.2/charts/stable/common/) for the up-to-date values.
- Changed image tag to `20210523`.
### [1.0.0] ### [1.0.0]
#### Added #### Added

View File

@ -6,58 +6,54 @@
# #
image: image:
# -- image repository
repository: photoprism/photoprism repository: photoprism/photoprism
# -- image tag
tag: "20210523"
# -- image pull policy
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
tag: "20201122"
strategy:
type: Recreate
# -- environment variables. See [image docs](https://docs.photoprism.org/getting-started/config-options/) for more details.
# @default -- See below
env: env:
# -- Set the container timezone
TZ: UTC
# -- Photoprism storage path
PHOTOPRISM_STORAGE_PATH: /photoprism/storage PHOTOPRISM_STORAGE_PATH: /photoprism/storage
# -- Photoprism originals path
PHOTOPRISM_ORIGINALS_PATH: /photoprism/originals PHOTOPRISM_ORIGINALS_PATH: /photoprism/originals
## See other config options from PhotoPrism documentation: https://docs.photoprism.org/getting-started/config-options/ # -- Initial admin password. **BE SURE TO CHANGE THIS!**
# PHOTOPRISM_ADMIN_PASSWORD: "please-change" # Initial admin password: PLEASE CHANGE! PHOTOPRISM_ADMIN_PASSWORD: "please-change"
# PHOTOPRISM_DEBUG: "false" # Run in debug mode (shows additional log messages) # -- Disable authentication / password protection
# PHOTOPRISM_PUBLIC: "false" # No authentication required (disables password protection) PHOTOPRISM_PUBLIC: "false"
# PHOTOPRISM_READONLY: "false" # Don't modify originals directory (reduced functionality) # -- Sets UID Photoprism runs under.
# PHOTOPRISM_EXPERIMENTAL: "false" # Enable experimental features UID: # 1000
# PHOTOPRISM_SITE_URL: "http://localhost:2342/" # Canonical / public site URL # -- Sets GID Photoprism runs under.
# PHOTOPRISM_SITE_TITLE: "PhotoPrism" GID: # 1000
# PHOTOPRISM_SITE_CAPTION: "Browse Your Life" # -- Sets UMASK.
# PHOTOPRISM_SITE_DESCRIPTION: "" UMASK: # 0000
# PHOTOPRISM_SITE_AUTHOR: ""
# # You may optionally set user, group and/or file permissions using environment variables:
# UID: 1000
# GID: 1000
# UMASK: 0000
# -- Configures service settings for the chart.
# @default -- See values.yaml
service: service:
port: main:
port: 2342 ports:
http:
port: 2342
ingress: ingress:
enabled: false # -- Enable and configure ingress settings for the chart under this key.
# @default -- See values.yaml
main:
enabled: false
# -- Configure persistence settings for the chart under this key.
# @default -- See values.yaml
persistence: persistence:
config: config:
enabled: false enabled: false
emptyDir:
enabled: false
mountPath: /photoprism/storage mountPath: /photoprism/storage
originals: originals:
enabled: false enabled: false
emptyDir:
enabled: false
mountPath: "/photoprism/originals" mountPath: "/photoprism/originals"
# readOnly: true
# additionalVolumeMounts:
# - name: originals
# mountPath: "/photoprism/originals"
# readOnly: true
# additionalVolumes:
# - name: originals
# persistentVolumeClaim:
# claimName: nfs-pictures-pvc