From 2db10c41a0403d882a8e43d6db62363ec3194d11 Mon Sep 17 00:00:00 2001 From: Xstar97TheNoob <9399967+xstar97@users.noreply.github.com> Date: Thu, 20 Jul 2023 03:25:26 -0400 Subject: [PATCH] migrate(megasync) migrate megasync to common **BREAKING CHANGES** (#10623) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** Migrate megasync to new common ⚒️ Fixes # **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 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?** **📃 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/megasync/Chart.yaml | 21 +++--- charts/incubator/megasync/questions.yaml | 72 ++++++++----------- charts/incubator/megasync/templates/NOTES.txt | 1 + .../incubator/megasync/templates/common.yaml | 3 +- charts/incubator/megasync/values.yaml | 50 +++++++------ 5 files changed, 74 insertions(+), 73 deletions(-) create mode 100644 charts/incubator/megasync/templates/NOTES.txt diff --git a/charts/incubator/megasync/Chart.yaml b/charts/incubator/megasync/Chart.yaml index 562cfca646f..d7b63f02fbc 100644 --- a/charts/incubator/megasync/Chart.yaml +++ b/charts/incubator/megasync/Chart.yaml @@ -1,18 +1,11 @@ -annotations: - truecharts.org/SCALE-support: "true" - truecharts.org/catagories: | - - Network-Other - - Productivity - - Tools-Utilities - - Backup apiVersion: v2 appVersion: "latest" dependencies: - name: common repository: https://library-charts.truecharts.org - version: 11.1.2 + version: 12.14.6 deprecated: false -description: "MEGAsync is an intuitive application that enables you to effortlessly synchronize folders on several computers. You simply need to upload data in the cloud and, within seconds, you can explore the same documents on your own PC." +description: MEGAsync can synchronize all of your devices with your MEGA account. home: https://truecharts.org/charts/incubator/megasync icon: https://truecharts.org/img/hotlink-ok/chart-icons/megasync.png keywords: @@ -29,5 +22,13 @@ maintainers: name: megasync sources: - https://github.com/truecharts/charts/tree/master/charts/incubator/megasync + - https://github.com/ich777/docker-megasync type: application -version: 2.0.10 +version: 3.0.0 +annotations: + truecharts.org/catagories: | + - Network-Other + - Productivity + - Tools-Utilities + - Backup + truecharts.org/SCALE-support: "true" diff --git a/charts/incubator/megasync/questions.yaml b/charts/incubator/megasync/questions.yaml index e95cd0a06b9..513093aa388 100644 --- a/charts/incubator/megasync/questions.yaml +++ b/charts/incubator/megasync/questions.yaml @@ -2,6 +2,7 @@ portals: open: # Include{portalLink} + path: "/vnc_auto.html" questions: # Include{global} # Include{workload} @@ -10,39 +11,36 @@ questions: # Include{replicas1} # Include{podSpec} # Include{containerMain} + + + - variable: env + label: Image Environment + schema: + additional_attrs: true + type: dict + attrs: + - variable: CUSTOM_RES_W + label: "Resolution Width" + schema: + type: string + required: true + default: "800" + - variable: CUSTOM_RES_H + label: "Resolution Height" + schema: + type: string + required: true + default: "600" + # Include{containerBasic} # Include{containerAdvanced} - - variable: env - group: "App Configuration" - label: "Image Environment" - schema: - additional_attrs: true - type: dict - attrs: - - variable: UMASK - label: "UMASK" - description: "Container Variable UMASK" - schema: - type: string - default: "000" - - variable: CUSTOM_RES_W - label: "CUSTOM_RES_W" - description: "Container Variable CUSTOMRESW" - schema: - type: string - default: "800" - - variable: CUSTOM_RES_H - label: "CUSTOM_RES_H" - description: "Container Variable CUSTOMRESH" - schema: - type: string - default: "600" # Include{containerConfig} +# Include{podOptions} # 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 @@ -50,14 +48,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: 8080 @@ -66,17 +64,9 @@ questions: # Include{serviceExpert} # Include{serviceList} # Include{persistenceRoot} - - variable: datadir - label: "datadir Storage" - description: "Configuration directory" - schema: - additional_attrs: true - type: dict - attrs: -# Include{persistenceBasic} - - variable: hostpath - label: "hostpath Storage" - description: "Read only (This container was mainly created to backup files to MEGA, if you also want to sync files from and to MEGA please create a new path entry to the preferred share on the server - its strongly recommended to do that in mnt... within the container)" + - variable: data + label: "App Data Storage" + description: "Stores the Application Data." schema: additional_attrs: true type: dict diff --git a/charts/incubator/megasync/templates/NOTES.txt b/charts/incubator/megasync/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/megasync/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/megasync/templates/common.yaml b/charts/incubator/megasync/templates/common.yaml index cbf66c20818..b51394e00a4 100644 --- a/charts/incubator/megasync/templates/common.yaml +++ b/charts/incubator/megasync/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/megasync/values.yaml b/charts/incubator/megasync/values.yaml index b6223eb8311..1d2e784daa8 100644 --- a/charts/incubator/megasync/values.yaml +++ b/charts/incubator/megasync/values.yaml @@ -1,32 +1,42 @@ -env: - CUSTOM_RES_H: "600" - CUSTOM_RES_W: "800" - UMASK: "000" image: pullPolicy: IfNotPresent repository: tccr.io/truecharts/megasync - tag: latest@sha256:d94f4c81412cd0ea25dadeaae5f58e5f654a82eb9b71adfad622f38d8bd0112b -persistence: - datadir: - enabled: true - mountPath: /megasync/.local/share/data/Mega Limited/MEGAsync - hostpath: - enabled: true - mountPath: /mnt/host - readOnly: true -podSecurityContext: - runAsGroup: 0 - runAsUser: 0 + tag: vlatest@sha256:d94f4c81412cd0ea25dadeaae5f58e5f654a82eb9b71adfad622f38d8bd0112b + securityContext: - readOnlyRootFilesystem: false - runAsNonRoot: false + container: + runAsNonRoot: false + readOnlyRootFilesystem: false + runAsUser: 0 + runAsGroup: 0 + service: main: ports: main: port: 8080 - protocol: TCP + protocol: http targetPort: 8080 +workload: + main: + podSpec: + containers: + main: + env: + DATA_DIR: "{{ .Values.persistence.data.mountPath }}" + CUSTOM_RES_H: "600" + CUSTOM_RES_W: "800" + +persistence: + data: + enabled: true + mountPath: /data + hostpath: + enabled: true + mountPath: /mnt/host + readOnly: true + portal: - enabled: true + open: + enabled: true