fix(tasmoadmin) code cleanup (#7244)

* fix(tasmoadmin) code cleanup

* fix url

* update tag

* fix

---------

Signed-off-by: Xstar97TheNoob <9399967+xstar97@users.noreply.github.com>
This commit is contained in:
Xstar97TheNoob
2023-02-15 15:11:12 +00:00
committed by GitHub
parent 473156684e
commit 6b314b081b
3 changed files with 61 additions and 34 deletions
+11 -9
View File
@@ -1,16 +1,11 @@
annotations:
truecharts.org/SCALE-support: "true"
truecharts.org/catagories: |
- HomeAutomation
- Network-Management
apiVersion: v2
appVersion: "latest"
appVersion: "2.4.2"
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 11.1.2
deprecated: false
description: "TasmoAdmin is an administrative Website for Home Automation Devices flashed with Tasmota"
description: A administrative platform for devices flashed with Tasmota.
home: https://truecharts.org/charts/incubator/tasmoadmin
icon: https://truecharts.org/img/hotlink-ok/chart-icons/tasmoadmin.png
keywords:
@@ -25,6 +20,13 @@ maintainers:
name: tasmoadmin
sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/tasmoadmin
- https://hub.docker.com/r/raymondmm/tasmoadmin
- https://github.com/TasmoAdmin/TasmoAdmin
- https://ghcr.io/tasmoadmin/tasmoadmin
type: application
version: 2.0.10
version: 3.0.0
annotations:
truecharts.org/catagories: |
- HomeAutomation
- Network-Management
truecharts.org/SCALE-support: "true"
truecharts.org/grade: U
+36 -18
View File
@@ -8,11 +8,29 @@ questions:
# Include{replicas}
# Include{replica1}
# Include{controllerExpertExtraArgs}
- variable: env
group: App Configuration
label: Image Environment
schema:
additional_attrs: true
type: dict
attrs:
- variable: TASMO_DEBUG
label: Tasmo Debug
schema:
type: string
required: true
default: "1"
enum:
- value: "0"
description: "False"
- value: "1"
description: "True"
# Include{containerConfig}
# Include{serviceRoot}
- variable: main
label: "Main Service"
description: "The Primary service on which the healthcheck runs, often the webUI"
label: Main Service
description: The Primary service on which the healthcheck runs, often the webUI
schema:
additional_attrs: true
type: dict
@@ -20,14 +38,14 @@ questions:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
- variable: main
label: "Main Service Port Configuration"
label: Main Service Port Configuration
schema:
additional_attrs: true
type: dict
attrs:
- variable: port
label: "Port"
description: "This port exposes the container port on the service"
label: Port
description: This port exposes the container port on the service
schema:
type: int
default: 9541
@@ -38,8 +56,8 @@ questions:
# Include{serviceList}
# Include{persistenceRoot}
- variable: data
label: "data Storage"
description: "Container Path data"
label: App Data Storage
description: Stores the Application Data.
schema:
additional_attrs: true
type: dict
@@ -48,7 +66,7 @@ questions:
# Include{persistenceList}
# Include{ingressRoot}
- variable: main
label: "Main Ingress"
label: Main Ingress
schema:
additional_attrs: true
type: dict
@@ -60,41 +78,41 @@ questions:
# Include{security}
# Include{securityContextAdvancedRoot}
- variable: privileged
label: "Privileged mode"
label: Privileged mode
schema:
type: boolean
default: false
- variable: readOnlyRootFilesystem
label: "ReadOnly Root Filesystem"
label: ReadOnly Root Filesystem
schema:
type: boolean
default: false
- variable: allowPrivilegeEscalation
label: "Allow Privilege Escalation"
label: Allow Privilege Escalation
schema:
type: boolean
default: false
- variable: runAsNonRoot
label: "runAsNonRoot"
label: runAsNonRoot
schema:
type: boolean
default: false
# Include{podSecurityContextRoot}
- variable: runAsUser
label: "runAsUser"
description: "The UserID of the user running the application"
label: runAsUser
description: The UserID of the user running the application
schema:
type: int
default: 0
- variable: runAsGroup
label: "runAsGroup"
description: The groupID this App of the user running the application"
label: runAsGroup
description: The groupID this App of the user running the application
schema:
type: int
default: 0
- variable: fsGroup
label: "fsGroup"
description: "The group that should own ALL storage."
label: fsGroup
description: The group that should own ALL storage.
schema:
type: int
default: 568
+14 -7
View File
@@ -1,25 +1,32 @@
env: {}
image:
pullPolicy: IfNotPresent
repository: tccr.io/truecharts/tasmoadmin
tag: latest@sha256:c74805a40c9bcfce053e83d73bb0a4acf8a0aba689f040f75a6f79f1c8e38a42
persistence:
data:
enabled: true
mountPath: /data
tag: 2.4.2@sha256:5144a471e58004c129a0d800977e1e31ba4b46c52e37b9258591086161d2d96f
podSecurityContext:
runAsGroup: 0
runAsUser: 0
securityContext:
readOnlyRootFilesystem: false
runAsNonRoot: false
env:
TASMO_DATADIR: /data
TASMO_DEBUG: 1
service:
main:
ports:
main:
port: 9541
protocol: TCP
protocol: HTTP
targetPort: 80
persistence:
data:
enabled: true
mountPath: /data
portal:
enabled: true