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