migrate(photostructure) migrate to new common **BREAKING CHANGES** (#10240)

**Description**
migrate app and update container image.
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [X] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [X] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [X] ⚖️ My code follows the style guidelines of this project
- [X] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [X] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
Xstar97TheNoob
2023-07-09 00:48:05 +03:00
committed by GitHub
co-authored by Stavros Kois
parent 06cc909908
commit e930d9785a
5 changed files with 79 additions and 70 deletions
+13 -13
View File
@@ -1,18 +1,12 @@
annotations:
truecharts.org/SCALE-support: "true"
truecharts.org/catagories: |
- MediaApp-Photos
- MediaServer-Video
- MediaServer-Photos
apiVersion: v2 apiVersion: v2
appVersion: "stable" appVersion: "2.1.0"
dependencies: dependencies:
- name: common - name: common
repository: https://library-charts.truecharts.org repository: https://library-charts.truecharts.org
version: 11.1.2 version: 12.14.6
deprecated: false deprecated: false
description: "[b]PhotoStructure is your new home for all your photos and videos.[/b]\n" description: PhotoStructure is your new home for all your photos and videos.
home: https://truecharts.org/charts/incubator/photostructure home: https://truecharts.org/charts/stable/photostructure
icon: https://truecharts.org/img/hotlink-ok/chart-icons/photostructure.png icon: https://truecharts.org/img/hotlink-ok/chart-icons/photostructure.png
keywords: keywords:
- photostructure - photostructure
@@ -26,7 +20,13 @@ maintainers:
url: https://truecharts.org url: https://truecharts.org
name: photostructure name: photostructure
sources: sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/photostructure - https://github.com/truecharts/charts/tree/master/charts/stable/photostructure
- https://photostructure.com/ - https://github.com/photostructure/photostructure-for-servers
type: application type: application
version: 2.0.9 version: 3.0.0
annotations:
truecharts.org/catagories: |
- MediaApp-Photos
- MediaServer-Video
- MediaServer-Photos
truecharts.org/SCALE-support: "true"
+31 -31
View File
@@ -10,28 +10,28 @@ questions:
# Include{replicas1} # Include{replicas1}
# Include{podSpec} # Include{podSpec}
# Include{containerMain} # Include{containerMain}
# Include{containerBasic}
# Include{containerAdvanced}
- variable: env - variable: env
group: "App Configuration" label: Image Environment
label: "Image Environment"
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
- variable: PS_LOG_LEVEL - variable: PS_LOG_LEVEL
label: "PS_LOG_LEVEL" label: "PS Log Level"
description: "Valid values are debug, info, warn, and error. Default is error, which (should be) quiet."
schema: schema:
type: string type: string
default: "" private: true
- variable: UMASK default: "error"
label: "UMASK" enum:
description: "Files written by PhotoStructure will be applied with this umask." - value: error
schema: description: Error
type: string - value: info
default: "" description: Info
# Include{containerBasic}
# Include{containerAdvanced}
# Include{containerConfig} # Include{containerConfig}
# Include{serviceRoot} # Include{serviceRoot}
- variable: main - variable: main
@@ -60,33 +60,33 @@ questions:
# Include{serviceExpert} # Include{serviceExpert}
# Include{serviceList} # Include{serviceList}
# Include{persistenceRoot} # Include{persistenceRoot}
- variable: library - variable: config
label: "library Storage" label: "App Config Storage"
description: "This is where your PhotoStructure Library will be stored. It needs to have sufficient free space to hold preview images, and transcoded videos." description: "Stores the Application Config."
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
# Include{persistenceBasic} # Include{persistenceBasic}
- variable: tempscratchdisk - variable: library
label: "tempscratchdisk Storage" label: "App Library Storage"
description: "This must be fast, local disk." description: "Stores the Application Library."
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
# Include{persistenceBasic} # Include{persistenceBasic}
- variable: logs - variable: logs
label: "logs Storage" label: "App Logs Storage"
description: "Logfiles will be written into this directory. Set environment variable " description: "Stores the Application Logs."
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
# Include{persistenceBasic} # Include{persistenceBasic}
- variable: config - variable: tempscratchdisk
label: "config Storage" label: "App TempScratchDisk Storage"
description: "System configuration is written into this directory." description: "Stores the Application TempScratchDisk."
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
@@ -95,7 +95,7 @@ questions:
# Include{persistenceList} # Include{persistenceList}
# Include{ingressRoot} # Include{ingressRoot}
- variable: main - variable: main
label: "Main Ingress" label: Main Ingress
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
@@ -108,14 +108,14 @@ questions:
# Include{securityContextRoot} # Include{securityContextRoot}
- variable: runAsUser - variable: runAsUser
label: "runAsUser" label: runAsUser
description: "The UserID of the user running the application" description: The UserID of the user running the application
schema: schema:
type: int type: int
default: 0 default: 0
- variable: runAsGroup - variable: runAsGroup
label: "runAsGroup" label: runAsGroup
description: "The groupID of the user running the application" description: The groupID of the user running the application
schema: schema:
type: int type: int
default: 0 default: 0
@@ -123,8 +123,8 @@ questions:
# Include{securityContextAdvanced} # Include{securityContextAdvanced}
# Include{securityContextPod} # Include{securityContextPod}
- variable: fsGroup - variable: fsGroup
label: "fsGroup" label: fsGroup
description: "The group that should own ALL storage." description: The group that should own ALL storage.
schema: schema:
type: int type: int
default: 568 default: 568
@@ -0,0 +1 @@
{{- include "tc.v1.common.lib.chart.notes" $ -}}
@@ -1,2 +1 @@
{{/* Render the templates */}} {{ include "tc.v1.common.loader.all" . }}
{{ include "tc.common.loader.all" . }}
+26 -17
View File
@@ -1,10 +1,31 @@
env:
PS_LOG_LEVEL: ""
UMASK: ""
image: image:
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
repository: tccr.io/truecharts/photostructure repository: tccr.io/truecharts/photostructure
tag: vstable@sha256:60d2f7530872c7b65a126221e59d16e356e269dce2ca68a3c3f4f0c3f46ff3bf tag: v2.1.0@sha256:0c75885bdbb8bd64826af1ad36c12b3533aa6317cfbad2be4c5205368014ad80
securityContext:
container:
readOnlyRootFilesystem: false
runAsNonRoot: false
runAsGroup: 0
runAsUser: 0
service:
main:
ports:
main:
protocol: http
port: 1787
workload:
main:
podSpec:
containers:
main:
env:
PS_HTTP_PORT: "{{ .Values.service.main.ports.main.port }}"
PS_LOG_LEVEL: "error"
persistence: persistence:
config: config:
enabled: true enabled: true
@@ -18,19 +39,7 @@ persistence:
tempscratchdisk: tempscratchdisk:
enabled: true enabled: true
mountPath: /ps/tmp mountPath: /ps/tmp
podSecurityContext:
runAsGroup: 0
runAsUser: 0
securityContext:
readOnlyRootFilesystem: false
runAsNonRoot: false
service:
main:
ports:
main:
port: 1787
protocol: TCP
targetPort: 1787
portal: portal:
open:
enabled: true enabled: true