hivelocity / cluster-api-provider-hivelocity

Kubernetes Cluster API Provider Hivelocity provides a consistent deployment and day 2 operations of "self-managed" Kubernetes clusters on Hivelocity.
https://hivelocity.github.io/cluster-api-provider-hivelocity/user/introduction.html
Apache License 2.0
7 stars 2 forks source link

Add tag to mark devices that can be chosen by CAPHV #115

Closed janiskemper closed 10 months ago

janiskemper commented 11 months ago

/kind proposal

Goals Mark devices in an easy and concise way that can be chosen by CAPHV to be added to a cluster

User Story As a user, I want to easily tag those devices, that I want to include in my CAPI clusters. The other devices that are not tagged explicitly, should not be chosen. In this way, I am sure to not accidentally provision devices with CAPI that I use for other purposes.

Detailed Description Add the tag "caphv-use=allow" to our hvtag library and include a function hvtag.DeviceUsableByCAPI() bool to search for this tag and to return whether it exists (in this form) or not. Ignore all other tags that are similar but maybe not the same.

Contract changes This is related to the HivelocityDeviceType which should be replaced according to #114. Ignore all changes to HivelocityDeviceType in this issue to not mix the two topics.