feat(stable): BREAKING CHANGE migrate to new common part 3 (#8151)

**Description**
<!--
Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.
-->
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 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:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 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
- [ ] ⬆️ 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:
Kjeld Schouten-Lebbing
2023-04-29 08:44:01 +02:00
committed by GitHub
parent 030fcbb41e
commit 28f1a3e341
84 changed files with 1070 additions and 961 deletions
+3 -7
View File
@@ -3,11 +3,8 @@ appVersion: "11.0.0"
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 11.1.2
- condition: postgresql.enabled
name: postgresql
repository: https://deps.truecharts.org/
version: 11.0.31
version: 12.6.1
description: Airsonic is a Free and Open Source community driven media server
home: https://truecharts.org/charts/stable/airsonic-advanced
icon: https://truecharts.org/img/hotlink-ok/chart-icons/airsonic-advanced.png
@@ -22,9 +19,8 @@ name: airsonic-advanced
sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/airsonic-advanced
- https://github.com/airsonic/airsonic-advanced
version: 7.0.23
version: 9.0.0
annotations:
truecharts.org/catagories: |
- media
truecharts.org/SCALE-support: "true"
truecharts.org/grade: U
+29 -28
View File
@@ -10,30 +10,31 @@ questions:
# Include{replicas1}
# Include{podSpec}
# Include{containerMain}
- variable: env
group: "App Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
- variable: JAVA_OPTS
label: "JAVA_OPTS"
description: "JAVA_OPTS"
schema:
type: string
default: ""
- variable: CONTEXT_PATH
label: "CONTEXT_PATH"
description: "CONTEXT_PATH"
schema:
type: string
required: true
default: "/"
# Include{containerBasic}
# Include{containerAdvanced}
- variable: env
group: "App Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
- variable: JAVA_OPTS
label: "JAVA_OPTS"
description: "JAVA_OPTS"
schema:
type: string
default: ""
- variable: CONTEXT_PATH
label: "CONTEXT_PATH"
description: "CONTEXT_PATH"
schema:
type: string
required: true
default: "/"
# Include{containerConfig}
# Include{podOptions}
# Include{serviceRoot}
- variable: main
label: "Main Service"
@@ -114,16 +115,16 @@ questions:
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: 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
- variable: fsGroup
label: "fsGroup"
description: "The group that should own ALL storage."
schema:
@@ -0,0 +1 @@
{{- include "tc.v1.common.lib.chart.notes" $ -}}
@@ -1 +1 @@
{{ include "tc.common.loader.all" . }}
{{ include "tc.v1.common.loader.all" . }}
+44 -30
View File
@@ -4,56 +4,70 @@ image:
pullPolicy: IfNotPresent
securityContext:
readOnlyRootFilesystem: false
runAsNonRoot: false
container:
readOnlyRootFilesystem: false
runAsNonRoot: true
runAsUser: 568
runAsGroup: 568
podSecurityContext:
runAsUser: 0
runAsGroup: 0
workload:
main:
podSpec:
containers:
main:
probes:
liveness:
type: tcp
readiness:
type: tcp
startup:
type: tcp
env:
AIRSONIC_DIR: "/"
# -- For passing additional java options. For some reverse proxies, you may need to pass `JAVA_OPTS=-Dserver.use-forward-headers=true` for airsonic to generate the proper URL schemes.
env:
AIRSONIC_DIR: "/"
# -- For passing additional java options. For some reverse proxies, you may need to pass `JAVA_OPTS=-Dserver.use-forward-headers=true` for airsonic to generate the proper URL schemes.
JAVA_OPTS:
CONTEXT_PATH: "/"
spring_liquibase_parameters_userTableQuote: '"'
spring_datasource_username: "{{ .Values.postgresql.postgresqlUsername }}"
spring_datasource_url:
secretKeyRef:
name: dbcreds
key: jdbc
spring_datasource_password:
secretKeyRef:
name: dbcreds
key: postgresql-password
JAVA_OPTS:
CONTEXT_PATH: "/"
spring_liquibase_parameters_userTableQuote: '"'
spring_datasource_username: "{{ .Values.cnpg.main.user }}"
spring_datasource_url:
secretKeyRef:
name: cnpg-main-urls
key: jdbc
spring_datasource_password:
secretKeyRef:
name: cnpg-main-user
key: password
service:
main:
ports:
main:
port: 10122
protocol: http
targetPort: 4040
# Enabled postgres
postgresql:
enabled: true
existingSecret: "dbcreds"
postgresqlUsername: airsonic-advanced
postgresqlDatabase: airsonic-advanced
cnpg:
main:
enabled: true
user: airsonic-advanced
database: airsonic-advanced
persistence:
config:
enabled: true
mountPath: "/airsonic"
mountPath: /airsonic
music:
enabled: true
mountPath: "/music"
mountPath: /music
podcasts:
enabled: true
mountPath: "/podcasts"
mountPath: /podcasts
playlists:
enabled: true
mountPath: "/playlists"
mountPath: /playlists
portal:
enabled: true
open:
enabled: true