From 2d5e17584bd2cb6b83d789b365ccc0c2782027dc Mon Sep 17 00:00:00 2001 From: alfi0812 <43101280+alfi0812@users.noreply.github.com> Date: Tue, 5 Nov 2024 13:27:25 +0100 Subject: [PATCH] feat(generic-device-plugin): Add generic device plugin to repository (#28863) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes # **⚙️ 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:** - [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 - [x] 📄 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 - [x] 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. - [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: alfi0812 <43101280+alfi0812@users.noreply.github.com> --- .../stable/generic-device-plugin/.helmignore | 32 ++++++++++++ .../stable/generic-device-plugin/Chart.yaml | 37 ++++++++++++++ charts/stable/generic-device-plugin/README.md | 3 ++ .../generic-device-plugin/docs/setup.md | 37 ++++++++++++++ charts/stable/generic-device-plugin/icon.png | Bin 0 -> 1168 bytes .../generic-device-plugin/templates/NOTES.txt | 1 + .../templates/common.yaml | 1 + .../stable/generic-device-plugin/values.yaml | 46 ++++++++++++++++++ website/src/content/docs/guides/vpn-setup.md | 14 +++--- 9 files changed, 165 insertions(+), 6 deletions(-) create mode 100644 charts/stable/generic-device-plugin/.helmignore create mode 100644 charts/stable/generic-device-plugin/Chart.yaml create mode 100644 charts/stable/generic-device-plugin/README.md create mode 100644 charts/stable/generic-device-plugin/docs/setup.md create mode 100644 charts/stable/generic-device-plugin/icon.png create mode 100644 charts/stable/generic-device-plugin/templates/NOTES.txt create mode 100644 charts/stable/generic-device-plugin/templates/common.yaml create mode 100644 charts/stable/generic-device-plugin/values.yaml diff --git a/charts/stable/generic-device-plugin/.helmignore b/charts/stable/generic-device-plugin/.helmignore new file mode 100644 index 00000000000..feb7464da6f --- /dev/null +++ b/charts/stable/generic-device-plugin/.helmignore @@ -0,0 +1,32 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ +# OWNERS file for Kubernetes +OWNERS +# helm-docs templates +*.gotmpl +# docs folder +/docs +# icon +icon.png +icon.webp +icon-small.webp diff --git a/charts/stable/generic-device-plugin/Chart.yaml b/charts/stable/generic-device-plugin/Chart.yaml new file mode 100644 index 00000000000..1956acc5b1d --- /dev/null +++ b/charts/stable/generic-device-plugin/Chart.yaml @@ -0,0 +1,37 @@ +annotations: + max_scale_version: 24.04.1 + min_scale_version: 24.04.0 + truecharts.org/category: media + truecharts.org/max_helm_version: "3.15" + truecharts.org/min_helm_version: "3.11" + truecharts.org/train: stable +apiVersion: v2 +appVersion: latest +dependencies: + - name: common + version: 25.1.5 + repository: oci://tccr.io/truecharts + condition: "" + alias: "" + tags: [] + import-values: [] +deprecated: false +description: Device Plugin to expose tun-device on talos +home: https://truecharts.org/charts/stable/generic-device-plugin +icon: https://truecharts.org/img/hotlink-ok/chart-icons/generic-device-plugin.webp +keywords: + - jackett + - torrent + - usenet +kubeVersion: '>=1.24.0-0' +maintainers: + - name: TrueCharts + email: info@truecharts.org + url: https://truecharts.org +name: generic-device-plugin +sources: + - https://ghcr.io/squat/generic-device-plugin + - https://github.com/squat/generic-device-plugin + - https://github.com/truecharts/charts/tree/master/charts/stable/generic-device-plugin +type: application +version: 1.0.0 diff --git a/charts/stable/generic-device-plugin/README.md b/charts/stable/generic-device-plugin/README.md new file mode 100644 index 00000000000..2b8cc49d247 --- /dev/null +++ b/charts/stable/generic-device-plugin/README.md @@ -0,0 +1,3 @@ +--- +title: README +--- diff --git a/charts/stable/generic-device-plugin/docs/setup.md b/charts/stable/generic-device-plugin/docs/setup.md new file mode 100644 index 00000000000..7fd1431e21e --- /dev/null +++ b/charts/stable/generic-device-plugin/docs/setup.md @@ -0,0 +1,37 @@ +--- +title: Setup +--- + +This chart requires a privileged namespace. + +After adding this chart you can add your tun device to charts like this: + +```yaml +resources: + limits: + kernel.org/tun: 1 +``` + +For addons like our gluetun addon you can add it like this if you are using fluxcd: + +```yaml +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: chart + namespace: namespace +spec: + postRenderers: + - kustomize: + patches: + - target: + version: v1 + kind: Deployment + name: qbittorrent + patch: | + - op: add + path: /spec/template/spec/containers/1/resources/limits/truecharts.org~1tun + value: 1 + interval: 5m + chart: +``` diff --git a/charts/stable/generic-device-plugin/icon.png b/charts/stable/generic-device-plugin/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..c7e5593841b5b35d2eee6aa276ca1dc9b7630ce1 GIT binary patch literal 1168 zcmex=KU|?coW@chxW@Tkz0jjJ8$}zAA zvI;30I#U-U>$dGXcJ4ZK_{h;?$4{I*b?NeztJkjIxOwa0qsLF4K70P+<*SdM zK7aZ8?fZ|PzZe;qA>IL!5Dy{wM-b>ACKeWE7Iu(-7@5j}m|2j8Rnd@5$T5&Tu~1ma zsF6d&Y2w0-2RW6EgFc8R6KQ!#m{`Vr(Mu#brIP!m}`f_n(=pZ~WQc$gW15ymXY zV9(I(dAUfOJ2tm(=9ZrIY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