Stavros Kois f4b626b2ef fix(devices): set the hostPathType when a hostPath matches some criteria (#477)
**Description**
<!--
Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.
-->
⚒️ Fixes  # <!--(issue)-->

When someone tries to mount a device from host that does not exist, k8s
will create a *directory* (on the host) in it's place
That means that when they actually plug the usb it will still be a
directory unless manually fixed.

So when we detect one of those devices, lets set its hostPathType to
avoid that.

![image](https://github.com/truecharts/library-charts/assets/47820033/4b3e7ce8-5412-4b5e-a5d6-2305d59a0685)


We can extend the "filter" list once we figure out more things

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [x] 🪛 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
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 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
- [ ] ⬆️ 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._
2023-06-26 09:09:43 +02:00
2023-01-21 12:19:40 +01:00
2023-01-21 12:19:40 +01:00
2022-11-18 14:05:46 +02:00
2023-05-05 12:30:28 +02:00
2023-01-21 12:19:40 +01:00
2023-02-17 15:18:15 +01:00
2023-01-21 12:19:40 +01:00
2023-02-18 18:37:51 +01:00

library

Common Library Tests

Helm Library Chart for TrueCharts Charts and Apps

Description
Helm Library Charts for TrueCharts
Readme 11 MiB
Languages
Smarty 99.4%
Shell 0.6%