From e2e43c631247ac42c215c93cb4cf5034b1382df9 Mon Sep 17 00:00:00 2001 From: gismo2004 Date: Mon, 3 Jul 2023 21:56:54 +0200 Subject: [PATCH] migrate(tasmocompiler) migrate tasmocompiler to new common (#10117) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** migrate tasmocomiler to new common and update image ⚒️ Fixes # **⚙️ 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?** **📃 Notes:** **✔️ Checklist:** - [x] ⚖️ My code follows the style guidelines of this project - [x] 👀 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._ --- charts/incubator/tasmocompiler/Chart.yaml | 14 +++---- charts/incubator/tasmocompiler/questions.yaml | 37 ++++++++++++++++++- .../tasmocompiler/templates/common.yaml | 3 +- charts/incubator/tasmocompiler/values.yaml | 31 +++++++--------- 4 files changed, 57 insertions(+), 28 deletions(-) diff --git a/charts/incubator/tasmocompiler/Chart.yaml b/charts/incubator/tasmocompiler/Chart.yaml index 631f45b8d11..163326c0b38 100644 --- a/charts/incubator/tasmocompiler/Chart.yaml +++ b/charts/incubator/tasmocompiler/Chart.yaml @@ -1,14 +1,9 @@ -annotations: - truecharts.org/SCALE-support: "true" - truecharts.org/catagories: | - - HomeAutomation - - Tools-Utilities apiVersion: v2 appVersion: "latest" dependencies: - name: common repository: https://library-charts.truecharts.org - version: 11.1.2 + version: 12.14.6 deprecated: false description: "TasmoCompiler is a simple web GUI which allows you to compile fantastic Tasmota firmware with your own settings" home: https://truecharts.org/charts/incubator/tasmocompiler @@ -27,4 +22,9 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/incubator/tasmocompiler - https://github.com/benzino77/tasmocompiler type: application -version: 2.0.14 +version: 3.0.0 +annotations: + truecharts.org/catagories: | + - HomeAutomation + - Tools-Utilities + truecharts.org/SCALE-support: "true" diff --git a/charts/incubator/tasmocompiler/questions.yaml b/charts/incubator/tasmocompiler/questions.yaml index 028c47acbeb..77ef4ced2c6 100644 --- a/charts/incubator/tasmocompiler/questions.yaml +++ b/charts/incubator/tasmocompiler/questions.yaml @@ -1,5 +1,7 @@ # Include{groups} -portals: {} +portals: + open: +# Include{portalLink} questions: # Include{global} # Include{workload} @@ -11,10 +13,43 @@ questions: # Include{containerBasic} # Include{containerAdvanced} +# Include{containerConfig} +# Include{podOptions} +# Include{serviceRoot} +# Include{serviceMain} +# Include{serviceSelectorLoadBalancer} +# Include{serviceSelectorExtras} + - variable: main + 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" + schema: + type: int + default: 14003 + required: true # Include{serviceExpertRoot} # Include{serviceExpert} # Include{serviceList} +# Include{persistenceRoot} +# Include{persistenceBasic} # Include{persistenceList} +# Include{ingressRoot} + - variable: main + label: "Main Ingress" + schema: + additional_attrs: true + type: dict + attrs: +# Include{ingressDefault} +# Include{ingressTLS} +# Include{ingressTraefik} +# Include{ingressAdvanced} +# Include{ingressList} # Include{securityContextRoot} - variable: runAsUser diff --git a/charts/incubator/tasmocompiler/templates/common.yaml b/charts/incubator/tasmocompiler/templates/common.yaml index cbf66c20818..b51394e00a4 100644 --- a/charts/incubator/tasmocompiler/templates/common.yaml +++ b/charts/incubator/tasmocompiler/templates/common.yaml @@ -1,2 +1 @@ -{{/* Render the templates */}} -{{ include "tc.common.loader.all" . }} +{{ include "tc.v1.common.loader.all" . }} diff --git a/charts/incubator/tasmocompiler/values.yaml b/charts/incubator/tasmocompiler/values.yaml index 1592012d854..80d91a05763 100644 --- a/charts/incubator/tasmocompiler/values.yaml +++ b/charts/incubator/tasmocompiler/values.yaml @@ -1,28 +1,23 @@ -env: {} image: pullPolicy: IfNotPresent repository: tccr.io/truecharts/tasmocompiler - tag: latest@sha256:022e54789b3c865f82afcd30738b375f24b893756d95260533e66158261711ec -persistence: {} -podSecurityContext: - runAsGroup: 0 - runAsUser: 0 -probes: - liveness: - enabled: false - readiness: - enabled: false - startup: - enabled: false + tag: latest@sha256:ef51d927f2aa949f8cfcb6b109a7f5cac3a59ca6b6172e486634db922de41cf0 + securityContext: - readOnlyRootFilesystem: false - runAsNonRoot: false + container: + readOnlyRootFilesystem: false + runAsNonRoot: false + runAsUser: 0 + runAsGroup: 0 + service: main: - enabled: false ports: main: - enabled: false + port: 14003 + protocol: http + targetPort: 3000 portal: - enabled: false + open: + enabled: true