migrate(backuppc) migrate backuppc to new common **BREAKING CHANGES** (#12865)

**Description**
Migrate backuppc to new common and set a static semver version.
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [X] ⚠️ 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
- [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._
This commit is contained in:
Xstar97TheNoob
2023-09-24 01:04:56 +03:00
committed by GitHub
parent 08dec1085d
commit 536c3028d1
6 changed files with 169 additions and 51 deletions
+10 -9
View File
@@ -1,16 +1,11 @@
annotations:
truecharts.org/SCALE-support: "true"
truecharts.org/catagories: |
- Backup
- Network-Web
apiVersion: v2
appVersion: "latest"
appVersion: "6.0.2"
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 11.1.2
version: 14.0.3
deprecated: false
description: BackupPC is a high-performance, enterprise-grade system for backing up Linux, Windows and macOS PCs and laptops to a server's disk.
description: A high-performance, enterprise-grade system for backing up Linux, Windows and macOS PCs and laptops to a server's disk.
home: https://truecharts.org/charts/incubator/backuppc
icon: https://truecharts.org/img/hotlink-ok/chart-icons/backuppc.png
keywords:
@@ -25,6 +20,12 @@ maintainers:
name: backuppc
sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/backuppc
- https://github.com/tiredofit/docker-backuppc
- https://backuppc.github.io/backuppc/index.html
type: application
version: 2.0.16
version: 3.0.0
annotations:
truecharts.org/catagories: |
- Backup
- Network-Web
truecharts.org/SCALE-support: "true"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

+92 -17
View File
@@ -10,9 +10,84 @@ questions:
# Include{replicas1}
# Include{podSpec}
# Include{containerMain}
# Include{containerBasic}
# Include{containerAdvanced}
- variable: backuppc
group: App Configuration
label: Backup PC
schema:
additional_attrs: true
type: dict
attrs:
- variable: smtp
label: SMTP Configuration
schema:
additional_attrs: true
type: dict
attrs:
- variable: auto_from
label: Auto From
description: Add setting to support sending through Gmail SMTP.
schema:
type: boolean
default: false
- variable: host
label: SMTP Host
schema:
type: string
default: ""
- variable: port
label: SMTP Port
schema:
type: int
default: 25
- variable: domain
label: HELO Domain
schema:
type: string
default: ""
- variable: maildomain
label: Mail Domain From.
schema:
type: string
default: ""
- variable: auth
label: SMTP Authentication
schema:
type: string
default: "NONE"
- variable: user
label: SMTP Username
schema:
type: string
default: ""
- variable: pass
label: SMTP Password
schema:
type: string
private: true
default: ""
- variable: tls
label: TLS
description: Use TLS.
schema:
type: boolean
default: false
- variable: starttls
label: StartTLS
description: Start TLS from within session.
schema:
type: boolean
default: false
- variable: tlscertcheck
label: TLS Cert Check
description: Check remote certificate.
schema:
type: boolean
default: false
# Include{containerConfig}
# Include{serviceRoot}
- variable: main
@@ -41,33 +116,33 @@ questions:
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
- variable: backuplocation
label: "backuplocation Storage"
description: "Backup Location"
- variable: config
label: "App Config Storage"
description: "Stores the Application Configuration."
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
- variable: configurationfiles
label: "configurationfiles Storage"
description: "Configuration Files"
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
- variable: homedirectory
label: "homedirectory Storage"
description: "Home Directory for Backuppc (SSH Keys)"
- variable: ssh
label: "App SSH Storage"
description: "Stores the Application SSH."
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
- variable: logs
label: "logs Storage"
description: "Logs"
label: "App Logs Storage"
description: "Stores the Application Logs."
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
- variable: data
label: "App Data Storage"
description: "Stores the Application Data."
schema:
additional_attrs: true
type: dict
@@ -96,7 +171,7 @@ questions:
default: 0
- variable: runAsGroup
label: "runAsGroup"
description: "The groupID of the user running the application"
description: "The groupID this App of the user running the application"
schema:
type: int
default: 0
@@ -0,0 +1 @@
{{- include "tc.v1.common.lib.chart.notes" $ -}}
@@ -1,2 +1 @@
{{/* Render the templates */}}
{{ include "tc.common.loader.all" . }}
{{ include "tc.v1.common.loader.all" . }}
+65 -23
View File
@@ -1,34 +1,76 @@
env: {}
image:
pullPolicy: IfNotPresent
repository: tccr.io/truecharts/backuppc
tag: latest@sha256:299db42e6562324141408027763266510dfec1d81a6af2e0aa6368bca498872d
persistence:
backuplocation:
enabled: true
mountPath: /var/lib/backuppc
configurationfiles:
enabled: true
mountPath: /etc/backuppc
homedirectory:
enabled: true
mountPath: /home/backuppc
logs:
enabled: true
mountPath: /www/logs
podSecurityContext:
runAsGroup: 0
runAsUser: 0
tag: v6.0.2@sha256:80fe126415f0b530dd7d2645da23c8409f62f184a018c52a3ec1d8c5237d30ff
securityContext:
readOnlyRootFilesystem: false
runAsNonRoot: false
container:
runAsNonRoot: false
readOnlyRootFilesystem: false
runAsUser: 0
runAsGroup: 0
service:
main:
ports:
main:
port: 8000
protocol: TCP
protocol: http
targetPort: 80
port: 8000
backuppc:
smtp:
auto_from: false
host: postfix-relay
port: 25
domain: docker
maildomain: local
auth: none
user: ""
pass: ""
tls: false
starttls: false
tlscertcheck: false
workload:
main:
podSpec:
containers:
main:
env:
USER_BACKUPPC: "{{ .Values.securityContext.container.PUID }}"
GROUP_BACKUPPC: "{{ .Values.securityContext.pod.fsGroup }}"
CONFIG_PATH: "{{ .Values.persistence.config.mountPath }}"
LOG_PATH: "{{ .Values.persistence.logs.mountPath }}"
SSH_KEYS_PATH: "{{ .Values.persistence.ssh.mountPath }}"
DATA_PATH: "{{ .Values.persistence.data.mountPath }}"
# SMTP
SMTP_AUTO_FROM: "{{ .Values.backuppc.smtp.auto_from }}"
SMTP_HOST: "{{ .Values.backuppc.smtp.host }}"
SMTP_PORT: "{{ .Values.backuppc.smtp.port }}"
SMTP_DOMAIN: "{{ .Values.backuppc.smtp.domain }}"
SMTP_MAILDOMAIN: "{{ .Values.backuppc.smtp.maildomain }}"
SMTP_AUTHENTICATION: "{{ .Values.backuppc.smtp.auth }}"
SMTP_USER: "{{ .Values.backuppc.smtp.user }}"
SMTP_PASS: "{{ .Values.backuppc.smtp.pass }}"
SMTP_TLS: "{{ .Values.backuppc.smtp.tls }}"
SMTP_STARTTLS: "{{ .Values.backuppc.smtp.starttls }}"
SMTP_TLSCERTCHECK: "{{ .Values.backuppc.smtp.tlscertcheck }}"
persistence:
config:
enabled: true
mountPath: /config
ssh:
enabled: true
mountPath: /.ssh
logs:
enabled: true
mountPath: /logs
data:
enabled: true
mountPath: /data
portal:
enabled: true
open:
enabled: true