feat(GUI): add velero backup schedule to GUI templates (#17993)

**Description**
We will expose a per-app setting to create velero backup schedules for
them.
This adds the GUI templates and such

**⚙️ 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
- [x] 👀 I have performed a self-review of my own code
- [x] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [x] 📄 I have made corresponding changes to the documentation
- [x] ⚠️ My changes generate no new warnings
- [x] 🧪 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.

- [x] 🖼️ 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: Kjeld Schouten <kjeld@schouten-lebbing.nl>
Signed-off-by: Kjeld Schouten <info@kjeldschouten.nl>
This commit is contained in:
Kjeld Schouten 2024-02-07 00:35:18 +01:00 committed by GitHub
parent 9056a65b9a
commit ef5f947940
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 58 additions and 54 deletions

View File

@ -10,7 +10,7 @@ apiVersion: v2
appVersion: latest
dependencies:
- name: common
version: 17.2.30
version: 17.3.0
repository: oci://tccr.io/truecharts
condition: ""
alias: ""
@ -42,4 +42,4 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/enterprise/velero
- https://github.com/truecharts/containers/tree/master/apps/alpine
type: application
version: 3.2.1
version: 3.2.2

View File

@ -254,53 +254,4 @@ questions:
schema:
type: string
default: ""
- variable: schedules
group: "App Configuration"
label: "Pre-Defined Backup Schedules"
schema:
type: dict
additional_attrs: true
attrs:
- variable: default
label: "Default Schedule"
schema:
type: dict
additional_attrs: true
attrs:
- variable: disabled
label: "disabled"
schema:
type: boolean
default: true
- variable: schedule
label: "schedule"
show_if: [["disabled", "=", false]]
schema:
type: string
required: true
default: "0 0 0 * * *"
- variable: useOwnerReferencesInBackup
label: "useOwnerReferencesInBackup"
show_if: [["disabled", "=", false]]
schema:
type: boolean
default: false
- variable: template
label: template
show_if: [["disabled", "=", false]]
schema:
additional_attrs: true
type: dict
attrs:
- variable: ttl
label: "ttl"
schema:
type: string
required: true
default: "240h"
- variable: storageLocation
label: "storageLocation"
schema:
type: string
required: true
default: "default"
# Include{veleroSchedule}

View File

@ -10,7 +10,7 @@ apiVersion: v2
appVersion: 0.21.1155
dependencies:
- name: common
version: 17.2.30
version: 17.3.0
repository: oci://tccr.io/truecharts
condition: ""
alias: ""
@ -35,4 +35,4 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/jackett
- https://ghcr.io/linuxserver/jackett
type: application
version: 18.1.11
version: 18.1.12

View File

@ -81,4 +81,5 @@ questions:
# Include{codeserver}
# Include{netshoot}
# Include{vpn}
# Include{veleroSchedule}
# Include{documentation}

View File

@ -23,6 +23,8 @@ groups:
description: Metrics
- name: Addons
description: Addon Configuration
- name: Backup Configuration
description: Configure Velero Backup Schedule
- name: Advanced
description: Advanced Configuration
- name: Postgresql

View File

@ -0,0 +1,50 @@
- variable: schedules
group: "Backup Configuration"
label: "Backup Schedules"
schema:
type: dict
additional_attrs: true
attrs:
- variable: default
label: "Default Schedule"
schema:
type: dict
additional_attrs: true
attrs:
- variable: enabled
label: "enabled"
schema:
type: boolean
default: false
- variable: schedule
label: "schedule"
show_if: [["enabled", "=", true]]
schema:
type: string
required: true
default: "0 0 0 * * *"
- variable: useOwnerReferencesInBackup
label: "useOwnerReferencesInBackup"
show_if: [["enabled", "=", true]]
schema:
type: boolean
default: false
- variable: template
label: template
show_if: [["enabled", "=", true]]
schema:
additional_attrs: true
type: dict
attrs:
- variable: ttl
label: "ttl"
schema:
type: string
required: true
default: "240h"
- variable: storageLocation
label: "storageLocation"
schema:
type: string
required: true
default: "default"