refactor(picoshare) housekeeping + update description (#12197)

**Description**
Housekeeping, update description and hide the lightstream options behind
sub questions.
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ 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._
This commit is contained in:
Xstar97TheNoob
2023-09-05 23:58:50 +03:00
committed by GitHub
parent 459fa49ab1
commit 95daa1ebce
3 changed files with 55 additions and 35 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ name: picoshare
sources: sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/picoshare - https://github.com/truecharts/charts/tree/master/charts/stable/picoshare
- https://github.com/mtlynch/picoshare - https://github.com/mtlynch/picoshare
version: 6.0.1 version: 6.0.2
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- media - media
+41 -27
View File
@@ -20,39 +20,53 @@ questions:
type: dict type: dict
attrs: attrs:
- variable: PS_SHARED_SECRET - variable: PS_SHARED_SECRET
label: "PS_SHARED_SECRET" label: "Admin Web Password"
description: "Secret Key for Web Console." description: "Specifies a passphrase for the admin user to log in to PicoShare."
schema: schema:
type: string type: string
required: true required: true
private: true private: true
default: "" default: ""
- variable: LITESTREAM_BUCKET - variable: lightstream
label: "LITESTREAM_BUCKET" label: Show Advanced LightStream Settings
description: "If you specify settings for a Litestream-compatible cloud storage location, PicoShare will automatically replicate your data."
schema: schema:
type: string type: boolean
default: "" default: false
- variable: LITESTREAM_ENDPOINT show_subquestions_if: true
label: "LITESTREAM_ENDPOINT" subquestions:
description: "If you specify settings for a Litestream-compatible cloud storage location, PicoShare will automatically replicate your data." - variable: LITESTREAM_BUCKET
schema: label: "LightStream Bucket"
type: string description: "Compatible cloud storage bucket where Litestream should replicate data."
default: "" schema:
- variable: LITESTREAM_ACCESS_KEY_ID type: string
label: "LITESTREAM_ACCESS_KEY_ID" default: ""
description: "If you specify settings for a Litestream-compatible cloud storage location, PicoShare will automatically replicate your data." - variable: LITESTREAM_ENDPOINT
schema: label: "LightStream Endpoint"
type: string description: "Compatible cloud storage endpoint where Litestream should replicate data."
private: true schema:
default: "" type: string
- variable: LITESTREAM_SECRET_ACCESS_KEY default: ""
label: "LITESTREAM_SECRET_ACCESS_KEY" - variable: LITESTREAM_ACCESS_KEY_ID
description: "If you specify settings for a Litestream-compatible cloud storage location, PicoShare will automatically replicate your data." label: "LightStream Access Key Id"
schema: description: "Compatible cloud storage access key ID to the bucket where you want to replicate data."
type: string schema:
private: true type: string
default: "" private: true
default: ""
- variable: LITESTREAM_SECRET_ACCESS_KEY
label: "LightStream Secret Access Key"
description: "Compatible cloud storage secret access key to the bucket where you want to replicate data."
schema:
type: string
private: true
default: ""
- variable: LITESTREAM_RETENTION
label: "LightStream Retention"
description: "The amount of time Litestream snapshots & WAL files will be kept."
schema:
type: string
required: true
default: "72h"
# Include{containerBasic} # Include{containerBasic}
# Include{containerAdvanced} # Include{containerAdvanced}
+13 -7
View File
@@ -2,18 +2,12 @@ image:
repository: tccr.io/truecharts/picoshare repository: tccr.io/truecharts/picoshare
tag: v1.3.8@sha256:b88b39d24ef5f6ed5f1055bb8d607e395a9eb037d2eaaeb1c0f9ca4165d4447b tag: v1.3.8@sha256:b88b39d24ef5f6ed5f1055bb8d607e395a9eb037d2eaaeb1c0f9ca4165d4447b
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
service: service:
main: main:
ports: ports:
main: main:
port: 10209 port: 10209
persistence:
data:
enabled: true
mountPath: "/data"
portal:
open:
enabled: true
workload: workload:
main: main:
@@ -22,8 +16,20 @@ workload:
main: main:
env: env:
PORT: "{{ .Values.service.main.ports.main.port }}" PORT: "{{ .Values.service.main.ports.main.port }}"
# web admin password
PS_SHARED_SECRET: "somesecretcode" PS_SHARED_SECRET: "somesecretcode"
# optional
LITESTREAM_BUCKET: "" LITESTREAM_BUCKET: ""
LITESTREAM_ENDPOINT: "" LITESTREAM_ENDPOINT: ""
LITESTREAM_ACCESS_KEY_ID: "" LITESTREAM_ACCESS_KEY_ID: ""
LITESTREAM_SECRET_ACCESS_KEY: "" LITESTREAM_SECRET_ACCESS_KEY: ""
LITESTREAM_RETENTION: 72h
persistence:
data:
enabled: true
mountPath: "/data"
portal:
open:
enabled: true