feat(tasmoadmin): Port to new common (#9284)

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

- [x] ⚙️ 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:**

- [x] ⚖️ 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
- [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.

- [ ] 🪞 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._

---------

Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
gismo2004
2023-06-01 23:28:40 +03:00
committed by GitHub
co-authored by Stavros Kois
parent 94f8c09f87
commit 5129b42746
4 changed files with 49 additions and 51 deletions
+2 -3
View File
@@ -3,7 +3,7 @@ appVersion: "2.4.2"
dependencies: dependencies:
- name: common - name: common
repository: https://library-charts.truecharts.org repository: https://library-charts.truecharts.org
version: 11.1.2 version: 12.10.4
deprecated: false deprecated: false
description: A administrative platform for devices flashed with Tasmota. description: A administrative platform for devices flashed with Tasmota.
home: https://truecharts.org/charts/incubator/tasmoadmin home: https://truecharts.org/charts/incubator/tasmoadmin
@@ -22,10 +22,9 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/tasmoadmin - https://github.com/truecharts/charts/tree/master/charts/incubator/tasmoadmin
- https://github.com/TasmoAdmin/TasmoAdmin - https://github.com/TasmoAdmin/TasmoAdmin
type: application type: application
version: 3.0.0 version: 4.0.0
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- HomeAutomation - HomeAutomation
- Network-Management - Network-Management
truecharts.org/SCALE-support: "true" truecharts.org/SCALE-support: "true"
truecharts.org/grade: U
+30 -35
View File
@@ -14,14 +14,14 @@ questions:
# Include{containerAdvanced} # Include{containerAdvanced}
- variable: env - variable: env
group: App Configuration group: "App Configuration"
label: Image Environment label: "Image Environment"
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
- variable: TASMO_DEBUG - variable: TASMO_DEBUG
label: Tasmo Debug label: "Tasmo Debug"
schema: schema:
type: string type: string
required: true required: true
@@ -32,25 +32,20 @@ questions:
- value: "1" - value: "1"
description: "True" description: "True"
# Include{containerConfig} # Include{containerConfig}
# Include{podOptions}
# Include{serviceRoot} # Include{serviceRoot}
- variable: main # Include{serviceMain}
label: Main Service
description: The Primary service on which the healthcheck runs, often the webUI
schema:
additional_attrs: true
type: dict
attrs:
# Include{serviceSelectorLoadBalancer} # Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras} # Include{serviceSelectorExtras}
- variable: main - variable: main
label: Main Service Port Configuration label: "Main Service Port Configuration"
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
- variable: port - variable: port
label: Port label: "Port"
description: This port exposes the container port on the service description: "This port exposes the container port on the service"
schema: schema:
type: int type: int
default: 9541 default: 9541
@@ -60,8 +55,8 @@ questions:
# Include{serviceList} # Include{serviceList}
# Include{persistenceRoot} # Include{persistenceRoot}
- variable: data - variable: data
label: App Data Storage label: "App Data Storage"
description: Stores the Application Data. description: "Stores the Application Data."
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
@@ -70,7 +65,7 @@ questions:
# Include{persistenceList} # Include{persistenceList}
# Include{ingressRoot} # Include{ingressRoot}
- variable: main - variable: main
label: Main Ingress label: "Main Ingress"
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
@@ -80,29 +75,29 @@ questions:
# Include{ingressTraefik} # Include{ingressTraefik}
# Include{ingressAdvanced} # Include{ingressAdvanced}
# Include{ingressList} # Include{ingressList}
# Include{securityContextRoot}
# Include{podSecurityContextRoot} - variable: runAsUser
- variable: runAsUser label: "runAsUser"
label: runAsUser description: "The UserID of the user running the application"
description: The UserID of the user running the application schema:
schema: type: int
type: int default: 0
default: 0 - variable: runAsGroup
- variable: runAsGroup label: "runAsGroup"
label: runAsGroup description: "The groupID of the user running the application"
description: The groupID this App of the user running the application schema:
schema: type: int
type: int default: 0
default: 0
# Include{securityContextContainer} # Include{securityContextContainer}
# Include{securityContextAdvanced} # Include{securityContextAdvanced}
# Include{securityContextPod} # Include{securityContextPod}
- variable: fsGroup - variable: fsGroup
label: fsGroup label: "fsGroup"
description: The group that should own ALL storage. description: "The group that should own ALL storage."
schema: schema:
type: int type: int
default: 568 default: 568
# Include{resources} # Include{resources}
# Include{advanced} # Include{advanced}
@@ -1,2 +1 @@
{{/* Render the templates */}} {{ include "tc.v1.common.loader.all" . }}
{{ include "tc.common.loader.all" . }}
+16 -11
View File
@@ -3,24 +3,28 @@ image:
repository: tccr.io/truecharts/tasmoadmin repository: tccr.io/truecharts/tasmoadmin
tag: 2.4.2@sha256:5144a471e58004c129a0d800977e1e31ba4b46c52e37b9258591086161d2d96f tag: 2.4.2@sha256:5144a471e58004c129a0d800977e1e31ba4b46c52e37b9258591086161d2d96f
podSecurityContext:
runAsGroup: 0
runAsUser: 0
securityContext: securityContext:
readOnlyRootFilesystem: false container:
runAsNonRoot: false readOnlyRootFilesystem: false
runAsNonRoot: false
runAsUser: 0
runAsGroup: 0
env: workload:
TASMO_DATADIR: /data main:
TASMO_DEBUG: 1 podSpec:
containers:
main:
env:
TASMO_DATADIR: /data
TASMO_DEBUG: 1
service: service:
main: main:
ports: ports:
main: main:
port: 9541 port: 9541
protocol: HTTP protocol: http
targetPort: 80 targetPort: 80
persistence: persistence:
@@ -29,4 +33,5 @@ persistence:
mountPath: /data mountPath: /data
portal: portal:
enabled: true open:
enabled: true