From 40c346e789c13972c393f58a49e58134523ac9c0 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Thu, 15 Feb 2024 19:37:04 +0100 Subject: [PATCH] chore: add our own GPU GUI for SCALE (#18254) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** We want to migrate away from using TrueNAS-Only GPU elements where we can. On top of this, the "allocate x" language in the way iX-Systems has designed the GPU selection GUI is *terrible*. This replaces said GUI with our own. **โš™๏ธ Type of change** - [x] โš™๏ธ 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?** **๐Ÿ“ƒ Notes:** For the NVIDIA GPU's to work, we likely need a runtime selection trick added to common. **โœ”๏ธ 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 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 --- templates/questions/general/resources.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/templates/questions/general/resources.yaml b/templates/questions/general/resources.yaml index c7bebe808f4..1bee7779553 100644 --- a/templates/questions/general/resources.yaml +++ b/templates/questions/general/resources.yaml @@ -25,6 +25,21 @@ type: string default: 8Gi valid_chars: '^(?!^0(e[0-9]|[EPTGMK]i?|)$)([0-9]+)(|[EPTGMK]i?|e[0-9]+)$' + - variable: 'intel.com/i915' + label: Add Intel i915 GPUs + schema: + type: int + default: 0 + - variable: 'nvidia.com/gpu' + label: Add NVIDIA GPUs (Experimental) + schema: + type: int + default: 0 + - variable: 'amd.com/gpu' + label: Add AMD GPUs + schema: + type: int + default: 0 - variable: requests label: "Minimum Resources Required (request)" schema: