From bbb6fcdd14720a58cbffc4fba639d1df07a323f9 Mon Sep 17 00:00:00 2001 From: Xstar97TheNoob <9399967+xstar97@users.noreply.github.com> Date: Thu, 13 Jul 2023 03:53:18 -0400 Subject: [PATCH] migrate(piwigo) migrate piwigo to new common **BREAKING CHANGES** (#10376) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** Migrate new common ⚒️ Fixes # **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [X] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** **📃 Notes:** **✔️ 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._ --- charts/incubator/piwigo/Chart.yaml | 8 +-- charts/incubator/piwigo/questions.yaml | 59 ++++++++++--------- charts/incubator/piwigo/templates/NOTES.txt | 1 + charts/incubator/piwigo/templates/common.yaml | 3 +- charts/incubator/piwigo/values.yaml | 23 +++++--- 5 files changed, 51 insertions(+), 43 deletions(-) create mode 100644 charts/incubator/piwigo/templates/NOTES.txt diff --git a/charts/incubator/piwigo/Chart.yaml b/charts/incubator/piwigo/Chart.yaml index 4ee0a0c2f45..62feaaec6fa 100644 --- a/charts/incubator/piwigo/Chart.yaml +++ b/charts/incubator/piwigo/Chart.yaml @@ -1,10 +1,10 @@ apiVersion: v2 -appVersion: "11.5.0" +appVersion: "13.7.0" dependencies: - name: common repository: https://library-charts.truecharts.org - version: 11.1.2 -description: A is photo gallery software for the web, built by an active community of users and developers. + version: 12.14.6 +description: A photo gallery software for the web. home: https://truecharts.org/charts/incubator/piwigo icon: https://truecharts.org/img/hotlink-ok/chart-icons/piwigo.png keywords: @@ -23,7 +23,7 @@ sources: - http://piwigo.org/ - https://github.com/linuxserver/docker-piwigo type: application -version: 5.0.8 +version: 6.0.0 annotations: truecharts.org/catagories: | - media diff --git a/charts/incubator/piwigo/questions.yaml b/charts/incubator/piwigo/questions.yaml index 053a3e2d8c7..2872da3b3b0 100644 --- a/charts/incubator/piwigo/questions.yaml +++ b/charts/incubator/piwigo/questions.yaml @@ -10,14 +10,15 @@ questions: # Include{replicas1} # Include{podSpec} # Include{containerMain} + # Include{containerBasic} # Include{containerAdvanced} # Include{containerConfig} # Include{serviceRoot} - variable: main - label: Main Service - description: The Primary service on which the healthcheck runs, often the webUI + label: "Main Service" + description: "The Primary service on which the healthcheck runs, often the webUI" schema: additional_attrs: true type: dict @@ -25,14 +26,14 @@ questions: # Include{serviceSelectorLoadBalancer} # Include{serviceSelectorExtras} - variable: main - label: Main Service Port Configuration + label: "Main Service Port Configuration" schema: additional_attrs: true type: dict attrs: - variable: port - label: Port - description: This port exposes the container port on the service + label: "Port" + description: "This port exposes the container port on the service" schema: type: int default: 10027 @@ -42,16 +43,16 @@ questions: # Include{serviceList} # Include{persistenceRoot} - variable: config - label: App Config Storage - description: Stores the Application Configuration. + label: "App Config Storage" + description: "Stores the Application Configuration." schema: additional_attrs: true type: dict attrs: # Include{persistenceBasic} - variable: gallery - label: App Image/Plugin Storage - description: Image, plugin & theme storage for Piwigo + label: "App Gallery Storage" + description: "Stores the Application Gallery." schema: additional_attrs: true type: dict @@ -60,7 +61,7 @@ questions: # Include{persistenceList} # Include{ingressRoot} - variable: main - label: Main Ingress + label: "Main Ingress" schema: additional_attrs: true type: dict @@ -70,29 +71,29 @@ questions: # Include{ingressTraefik} # Include{ingressAdvanced} # Include{ingressList} +# Include{securityContextRoot} -# Include{podSecurityContextRoot} - - variable: runAsUser - label: runAsUser - description: The UserID of the user running the application - schema: - type: int - default: 0 - - variable: runAsGroup - label: runAsGroup - description: The groupID this App of the user running the application - schema: - type: int - default: 0 + - variable: runAsUser + label: "runAsUser" + description: "The UserID of the user running the application" + schema: + type: int + default: 0 + - variable: runAsGroup + label: "runAsGroup" + description: "The groupID of the user running the application" + schema: + type: int + default: 0 # Include{securityContextContainer} # Include{securityContextAdvanced} # Include{securityContextPod} - - variable: fsGroup - label: fsGroup - description: The group that should own ALL storage. - schema: - type: int - default: 568 + - variable: fsGroup + label: "fsGroup" + description: "The group that should own ALL storage." + schema: + type: int + default: 568 # Include{resources} # Include{advanced} diff --git a/charts/incubator/piwigo/templates/NOTES.txt b/charts/incubator/piwigo/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/piwigo/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/piwigo/templates/common.yaml b/charts/incubator/piwigo/templates/common.yaml index 76759c7a0c9..b51394e00a4 100644 --- a/charts/incubator/piwigo/templates/common.yaml +++ b/charts/incubator/piwigo/templates/common.yaml @@ -1,2 +1 @@ - -{{ include "tc.common.loader.all" . }} +{{ include "tc.v1.common.loader.all" . }} diff --git a/charts/incubator/piwigo/values.yaml b/charts/incubator/piwigo/values.yaml index 2558cb0598f..c4e098d50d2 100644 --- a/charts/incubator/piwigo/values.yaml +++ b/charts/incubator/piwigo/values.yaml @@ -1,15 +1,14 @@ image: repository: tccr.io/truecharts/piwigo pullPolicy: IfNotPresent - tag: version-11.5.0@sha256:8f8bb5d28b930edfded154d71dd2eab4ffe5631d2e4f21773bf33b220ab76f05 + tag: v13.7.0@sha256:9f8bd8ae06a7dfcdb209af444f49119680ce74e58a53df4ac5ed56d9878292f4 securityContext: - readOnlyRootFilesystem: false - runAsNonRoot: false - -podSecurityContext: - runAsUser: 0 - runAsGroup: 0 + container: + runAsNonRoot: false + readOnlyRootFilesystem: false + runAsUser: 0 + runAsGroup: 0 service: main: @@ -18,6 +17,13 @@ service: targetPort: 80 port: 10027 +workload: + main: + podSpec: + containers: + main: + env: {} + persistence: config: enabled: true @@ -31,4 +37,5 @@ persistence: enabled: true portal: - enabled: true + open: + enabled: true