-
Notifications
You must be signed in to change notification settings - Fork 1
Add functionality to tag Root Volume #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
There is a side effect associated with this design. If
I think that these thoughts are relevant for the following issue and that they need to be addressed there instead: #45 |
bastjan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR 😊
Code looks good. I'll check with Cloudscale how we reliably detect root volumes.
Co-authored-by: Sebastian Widmer <[email protected]>
I'm not entirely sure if I agree. Server groups are a "floating" object. Their lifecycle is completely outside of the lifecycle of a server. The next created machine will just fill up the first server group with capacity. Idempotency is just not very important there. This fix could be to snapshot the labels at server creation time (as metadata appended to the server?) and then apply them in the update method if required. |
I can see your point here and agree that idempotency is not very important in this case. However, a server group can only contain 4 servers at max. For this reason, this MachineAPI provider correctly creates new server groups in case a group is full. From my point of view, this server group should have the same lifecycle as the servers associated with it. In a very unlikely scenario, where one scales down multiple instances, server groups that aren't actively needed either won't be deleted or must be deleted manually.
Have I understood it correctly that you want to save the root volume tags in the |
Yes. I'm just not yet sure where to save the tags. Probably we could just use the Another possibility would be to just attach the tags as metadata to the cloudscale server and sync them this way. Or add them to the status field, which might end up being a weirdly named field tho. My preference is just syncing the |
|
As we're not using root volume tags in production i'd be fine merging the PR, creating a release, and create a follow up issue specifically for the possible root volume tag inconsistency. Or (I or you) can try to come up with a fix in this PR. What do you think? |
|
IMO using As we will not be needing the functionality immediately, we can include a fix within this PR and wait before doing another release. I will be on vacation after tomorrow - let's see if I can come up with a fix before that. Potentially Tiago has some time next week, otherwise we can do it next year. :) |
I agree that would be my favourite. |
…unctionality + test
|
simu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Co-authored-by: Simon Gerber <[email protected]>
|
Released in v0.4.0. |
Summary
rootVolumeTagsfield to Machine Spec which allows to set tags on the CloudScale VM Root VolumeChecklist
bug,enhancement,documentation,change,breaking,dependencyas they show up in the changelog