syself / cluster-api-provider-hetzner

Cluster API Provider Hetzner :rocket: The best way to manage Kubernetes clusters on Hetzner, fully declarative, Kubernetes-native and with self-healing capabilities
https://caph.syself.com
Apache License 2.0
619 stars 58 forks source link

:seedling: Don't provision on devices containing a physical volume. #1303

Closed guettli closed 4 months ago

guettli commented 4 months ago

What this PR does / why we need it:

Don't provision on devices containing a physical volume.

Testing:

You can test it:

Enter rescue system on bm

# if raid is active
mdadm --stop /dev/md0 
mdadm --stop /dev/md1 

wipefs -a ... 
pvcreate ...

Then runt the script detect-linux-on-another-disk.sh

think about ways how this script could fail.