From e11576b91e94d0bed0e6a1e4df1bb8efe561a5fa Mon Sep 17 00:00:00 2001 From: Xstar97TheNoob <9399967+xstar97@users.noreply.github.com> Date: Sat, 9 Aug 2025 16:24:42 -0400 Subject: [PATCH] chore(yourls) fix and update yourls chart (#38219) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** Update port, cleaned up values.yaml, added mariadb support and set a semver tag ⚒️ Fixes # **⚙️ Type of change** - [X] ⚙️ Feature/App addition - [X] 🪛 Bugfix - [X] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [X] 🔃 Refactor of current code - [ ] 📜 Documentation Changes **🧪 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 changes to the documentation - [ ] 🧪 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 - [X] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):`, `chore(chart-name):`, `docs(chart-name):` or `fix(docs):` **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🖼️ 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: Xstar97TheNoob <9399967+xstar97@users.noreply.github.com> --- charts/stable/yourls/Chart.yaml | 12 ++++++++--- charts/stable/yourls/values.yaml | 35 ++++++++++++++++++++++---------- 2 files changed, 33 insertions(+), 14 deletions(-) diff --git a/charts/stable/yourls/Chart.yaml b/charts/stable/yourls/Chart.yaml index c8f99366be4..7dc9a6e2c8c 100644 --- a/charts/stable/yourls/Chart.yaml +++ b/charts/stable/yourls/Chart.yaml @@ -9,7 +9,7 @@ annotations: truecharts.org/min_helm_version: "3.14" truecharts.org/train: stable apiVersion: v2 -appVersion: latest +appVersion: 1.10.2 dependencies: - name: common version: 28.15.1 @@ -18,6 +18,13 @@ dependencies: alias: "" tags: [] import-values: [] + - name: mariadb + version: 16.2.2 + repository: oci://tccr.io/truecharts + condition: mariadb.enabled + alias: "" + tags: [] + import-values: [] deprecated: false description: YOURLS is a set of PHP scripts that will allow you to run Your Own URL Shortener. home: https://truecharts.org/charts/stable/yourls @@ -38,5 +45,4 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/stable/yourls - https://hub.docker.com/_/yourls type: application -version: 8.2.2 - +version: 9.0.0 diff --git a/charts/stable/yourls/values.yaml b/charts/stable/yourls/values.yaml index f56e86f41bb..01a8deb3468 100644 --- a/charts/stable/yourls/values.yaml +++ b/charts/stable/yourls/values.yaml @@ -1,9 +1,7 @@ image: pullPolicy: IfNotPresent repository: yourls - tag: latest@sha256:f92a2e81665145daf32932872e5b5face5b8b65395eb8bd23b514f9d07df2a29 -persistence: {} - + tag: 1.10.2@sha256:f92a2e81665145daf32932872e5b5face5b8b65395eb8bd23b514f9d07df2a29 securityContext: container: readOnlyRootFilesystem: false @@ -13,7 +11,7 @@ service: main: ports: main: - port: 80 + port: 8080 protocol: tcp targetPort: 8080 workload: @@ -22,11 +20,26 @@ workload: containers: main: env: - YOURLS_DB_HOST: "" - YOURLS_DB_NAME: "" - YOURLS_DB_PASS: "" - YOURLS_HOURS_OFFSET: "" - YOURLS_PASS: "" - YOURLS_PRIVATE: "" - YOURLS_SITE: "" + YOURLS_DB_HOST: + secretKeyRef: + expandObjectName: false + name: '{{ printf "%s-%s" .Release.Name "mariadbcreds" }}' + key: plainhost + YOURLS_DB_NAME: "{{ .Values.mariadb.mariadbDatabase }}" + YOURLS_DB_USER: "{{ .Values.mariadb.mariadbUsername }}" + YOURLS_DB_PASS: + secretKeyRef: + expandObjectName: false + name: '{{ printf "%s-%s" .Release.Name "mariadbcreds" }}' + key: mariadb-password + # YOURLS_HOURS_OFFSET: "" + # protect admin form + YOURLS_PRIVATE: false + YOURLS_SITE: "{{ .Values.chartContext.appUrl }}" YOURLS_USER: "" + YOURLS_PASS: "" + +mariadb: + enabled: true + mariadbUsername: yourls + mariadbDatabase: yourls \ No newline at end of file