Chore(stable): BREAKING CHANGE migrate to new common part 2 (#7992)

**Description**
See: https://github.com/truecharts/charts/pull/7900

**⚙️ 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

**🧪 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
- [x] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [x] 📄 I have made corresponding changes to the documentation
- [x] ⚠️ My changes generate no new warnings
- [x] 🧪 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.

- [x] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [x] 🖼️ 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-14 18:11:04 +02:00
committed by GitHub
parent ad3c093b8a
commit 278904bff0
299 changed files with 4603 additions and 4665 deletions
+2 -3
View File
@@ -3,7 +3,7 @@ appVersion: "latest"
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 11.1.2
version: 12.4.9
deprecated: false
description: Docusaurus makes it easy to maintain Open Source documentation websites.
home: https://truecharts.org/charts/stable/docusaurus
@@ -22,10 +22,9 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/docusaurus
- https://github.com/awesometic/docker-docusaurus
type: application
version: 3.0.9
version: 4.0.0
annotations:
truecharts.org/catagories: |
- website
- documentation
truecharts.org/SCALE-support: "true"
truecharts.org/grade: U
+43 -43
View File
@@ -10,44 +10,44 @@ questions:
# Include{replicas1}
# Include{podSpec}
# Include{containerMain}
- variable: env
group: "App Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
- variable: AUTO_UPDATE
label: "Auto Update"
schema:
type: boolean
default: true
- variable: WEBSITE_NAME
label: "Website Name"
description: "The name for your Docusaurus website"
schema:
type: string
default: "Docusaurus HomeLab Website"
- variable: TEMPLATE
label: "Docusaurus Default Template"
description: "Default template for your Docusaurus website"
schema:
type: string
default: "classic"
- variable: RUN_MODE
label: "Run Mode"
description: "Specify the mode to start Docusaurus"
schema:
type: string
default: "Production"
enum:
- value: production
description: Production
- value: development
description: Development
# Include{containerBasic}
# Include{containerAdvanced}
- variable: env
group: "App Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
- variable: AUTO_UPDATE
label: "Auto Update"
schema:
type: boolean
default: true
- variable: WEBSITE_NAME
label: "Website Name"
description: "The name for your Docusaurus website"
schema:
type: string
default: "Docusaurus HomeLab Website"
- variable: TEMPLATE
label: "Docusaurus Default Template"
description: "Default template for your Docusaurus website"
schema:
type: string
default: "classic"
- variable: RUN_MODE
label: "Run Mode"
description: "Specify the mode to start Docusaurus"
schema:
type: string
default: "Production"
enum:
- value: production
description: Production
- value: development
description: Development
# Include{containerConfig}
# Include{serviceRoot}
- variable: main
@@ -105,16 +105,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" . }}
+20 -15
View File
@@ -4,32 +4,37 @@ image:
tag: latest@sha256:00ca680f4ebfcb01f8f082c70a737db29963b3b2323b71eb701b0a4eef0170c9
securityContext:
readOnlyRootFilesystem: false
runAsNonRoot: false
podSecurityContext:
runAsUser: 0
runAsGroup: 0
container:
readOnlyRootFilesystem: false
runAsNonRoot: false
runAsUser: 0
runAsGroup: 0
service:
main:
ports:
main:
protocol: HTTP
protocol: http
targetPort: 80
port: 13080
env:
TARGET_UID: "{{ .Values.security.PUID }}"
TARGET_GID: "{{ .Values.podSecurityContext.fsGroup }}"
AUTO_UPDATE: true
WEBSITE_NAME: "Docusaurus HomeLab Website"
TEMPLATE: classic
workload:
main:
podSpec:
containers:
main:
env:
TARGET_UID: "{{ .Values.securityContext.container.PUID }}"
TARGET_GID: "{{ .Values.securityContext.pod.fsGroup }}"
AUTO_UPDATE: true
WEBSITE_NAME: "Docusaurus HomeLab Website"
TEMPLATE: classic
persistence:
config:
enabled: true
mountPath: "/docusaurus"
mountPath: /docusaurus
portal:
enabled: true
open:
enabled: true