From f1a4f46db457b4ffa539ceae979ce40685d26fee Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Tue, 5 Dec 2023 18:56:33 +0100 Subject: [PATCH] feat(velero): add initial GUI objects for velero (#15768) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** This adds SCALE GUI components for Velero. That means testing can initiate. Also bumps velero to latest common, just to be sure. ⚒️ Fixes #14651 **⚙️ 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:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 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 - [ ] ⬆️ 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/velero/Chart.yaml | 4 +- charts/incubator/velero/questions.yaml | 280 +++++++++++++++++++++++++ 2 files changed, 282 insertions(+), 2 deletions(-) diff --git a/charts/incubator/velero/Chart.yaml b/charts/incubator/velero/Chart.yaml index e5566046209..545263a7c31 100644 --- a/charts/incubator/velero/Chart.yaml +++ b/charts/incubator/velero/Chart.yaml @@ -1,7 +1,7 @@ kubeVersion: ">=1.24.0" apiVersion: v2 name: velero -version: 0.0.6 +version: 0.1.0 appVersion: latest description: Velero is a kubernetes-native backup solution home: https://truecharts.org/charts/incubator/velero @@ -21,7 +21,7 @@ keywords: - backup dependencies: - name: common - version: 15.3.1 + version: 16.0.0 repository: https://library-charts.truecharts.org condition: "" alias: "" diff --git a/charts/incubator/velero/questions.yaml b/charts/incubator/velero/questions.yaml index 97cb04afcd6..638df70431c 100644 --- a/charts/incubator/velero/questions.yaml +++ b/charts/incubator/velero/questions.yaml @@ -1,3 +1,283 @@ # Include{groups} questions: # Include{global} + + - variable: backupStorageLocationList + group: "App Configuration" + label: "Backup Storage Locations" + schema: + type: list + default: [] + items: + - variable: bslEntry + label: "Backup Storage Location" + schema: + type: dict + additional_attrs: true + attrs: + - variable: name + label: "Name" + schema: + type: string + required: true + default: "default" + - variable: provider + label: "Provider" + schema: + type: string + required: true + default: "" + - variable: accessMode + label: "accessMode" + schema: + type: string + required: true + default: "ReadWrite" + - variable: objectStorage + label: objectStorage + schema: + additional_attrs: true + type: dict + attrs: + - variable: bucket + label: "bucket" + schema: + type: string + required: true + default: "" + - variable: prefix + label: "prefix" + schema: + type: string + default: "" + - variable: credential + label: credential + schema: + additional_attrs: true + type: dict + attrs: + - variable: aws + label: aws + schema: + additional_attrs: true + type: dict + attrs: + - variable: id + label: "id" + schema: + type: string + default: "" + - variable: key + label: "key" + schema: + type: string + default: "" + - variable: s3 + label: s3 + schema: + additional_attrs: true + type: dict + attrs: + - variable: id + label: "id" + schema: + type: string + default: "" + - variable: key + label: "key" + schema: + type: string + default: "" + - variable: config + label: config + schema: + additional_attrs: true + type: dict + attrs: + - variable: region + label: "region" + schema: + type: string + default: "" + - variable: s3ForcePathStyle + label: "s3ForcePathStyle" + schema: + type: string + default: "" + - variable: s3Url + label: "s3Url" + schema: + type: string + default: "" + - variable: kmsKeyId + label: "kmsKeyId" + schema: + type: string + default: "" + - variable: resourceGroup + label: "resourceGroup" + schema: + type: string + default: "" + - variable: storageAccount + label: "storageAccount" + schema: + type: string + default: "" + - variable: publicUrl + label: "publicUrl" + schema: + type: string + default: "" + - variable: insecureSkipTLSVerify + label: "insecureSkipTLSVerify" + schema: + type: string + default: "" + - variable: volumeSnapshotLocationList + group: "App Configuration" + label: "volume Snapshot Locations" + schema: + type: list + default: [] + items: + - variable: vslEntry + label: "volume Snapshot Location" + schema: + type: dict + additional_attrs: true + attrs: + - variable: name + label: "Name" + schema: + type: string + required: true + default: "default" + - variable: provider + label: "Provider" + schema: + type: string + required: true + default: "" + - variable: credential + label: credential + schema: + additional_attrs: true + type: dict + attrs: + - variable: aws + label: aws + schema: + additional_attrs: true + type: dict + attrs: + - variable: id + label: "id" + schema: + type: string + default: "" + - variable: key + label: "key" + schema: + type: string + default: "" + - variable: s3 + label: s3 + schema: + additional_attrs: true + type: dict + attrs: + - variable: id + label: "id" + schema: + type: string + default: "" + - variable: key + label: "key" + schema: + type: string + default: "" + - variable: config + label: config + schema: + additional_attrs: true + type: dict + attrs: + - variable: region + label: "region" + schema: + type: string + default: "" + - variable: apiTimeout + label: "apiTimeout" + schema: + type: string + default: "" + - variable: resourceGroup + label: "resourceGroup" + schema: + type: string + default: "" + - variable: incremental + label: "incremental" + schema: + type: string + default: "" + - variable: snapshotLocation + label: "snapshotLocation" + schema: + type: string + default: "" + - variable: project + label: "project" + 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" + schema: + type: string + required: true + default: "" + - variable: useOwnerReferencesInBackup + label: "useOwnerReferencesInBackup" + schema: + type: boolean + default: false + - variable: template + label: template + 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"