From 9a758f2ee45b64da3e667ffbe1079b25e6e7a4fc Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Tue, 30 Apr 2024 13:35:28 +0200 Subject: [PATCH] feat(OpenEBS): Add ZFS SnapshotClass (#21449) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes # **⚙️ Type of change** - [ ] ⚙️ 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 - [ ] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):` or `chore(chart-name):` **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🖼️ 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/system/openebs/Chart.yaml | 2 +- charts/system/openebs/questions.yaml | 36 ++++++++++++++++++++++++++++ charts/system/openebs/values.yaml | 7 ++++++ 3 files changed, 44 insertions(+), 1 deletion(-) diff --git a/charts/system/openebs/Chart.yaml b/charts/system/openebs/Chart.yaml index d1a3de4decd..b83fde39ea7 100644 --- a/charts/system/openebs/Chart.yaml +++ b/charts/system/openebs/Chart.yaml @@ -56,4 +56,4 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/system/openebs - https://github.com/truecharts/containers/tree/master/apps/scratch type: application -version: 5.0.3 +version: 5.1.0 diff --git a/charts/system/openebs/questions.yaml b/charts/system/openebs/questions.yaml index bdb61ec5218..087ce996c52 100644 --- a/charts/system/openebs/questions.yaml +++ b/charts/system/openebs/questions.yaml @@ -150,3 +150,39 @@ questions: # type: string # default: "off" # hidden: true + - variable: volumeSnapshotClass + group: "App Configuration" + label: "volumeSnapshotClass" + schema: + type: dict + additional_attrs: true + hidden: true + attrs: + - variable: zfspv + label: "ZFS-LocalPV volumeSnapshotClass" + schema: + type: dict + additional_attrs: true + hidden: true + attrs: + - variable: enabled + label: "enabled" + schema: + type: boolean + default: false + - variable: isDefault + label: "isDefault" + schema: + type: boolean + default: false + - variable: deletionPolicy + label: "deletionPolicy" + schema: + type: string + required: true + default: "Delete" + enum: + - value: Retain + description: Retain + - value: Delete + description: Delete \ No newline at end of file diff --git a/charts/system/openebs/values.yaml b/charts/system/openebs/values.yaml index 4df6fc64854..0dca5bc03c7 100644 --- a/charts/system/openebs/values.yaml +++ b/charts/system/openebs/values.yaml @@ -189,3 +189,10 @@ lvm-localpv: # repository: openebs/lvm-driver # pullPolicy: IfNotPresent # tag: 1.5.0 + +volumeSnapshotClass: + zfspv: + enabled: false + isDefault: false + driver: zfs.csi.openebs.io + deletionPolicy: Delete \ No newline at end of file