chore(yourls) fix and update yourls chart (#38219)

**Description**
Update port, cleaned up values.yaml, added mariadb support and set a
semver tag
⚒️ Fixes  # <!--(issue)-->

**⚙️ 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?**
<!--
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 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>
This commit is contained in:
Xstar97TheNoob
2025-08-09 16:24:42 -04:00
committed by GitHub
parent d33baf73d3
commit e11576b91e
2 changed files with 33 additions and 14 deletions

View File

@@ -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

View File

@@ -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