-
Notifications
You must be signed in to change notification settings - Fork 6
Remove nodesToDelete functionality #31
base: main
Are you sure you want to change the base?
Conversation
8b6405e to
9ac7498
Compare
|
We might want to:
|
|
lgtm on this commit. One related topic we might discuss is only deleting nodes that have been annotated. So essentially we'd force users to annotate any nodes created via this machineset in order to delete them as a safety feature. |
|
@luis5tb what you think about this and my above comment? |
Umm, I have mix feelings. On the one hand it is not a clear fit for the CRD, but on the other hand, the idea is that the user only need to know about the CRD, not about the machineset and even less about the machine objects. And, to some extend, the CRD spec and status describe the end result. The nodesToDelete on the spec describe what nodes should be tagged with that annotation, and the status which ones are actually tagged already. So it is similar to other config options I think. Is there a reason to remove it? |
The issue I see with the nodesToDelete is that as soon the delete is finished, the information in the CR is out of date. Therefore in one of our CRD meetings (when you were on PTO) the result of discussion was that it might be better With this I thought about this again while creating this patch on if we should use the CR for scaling at all. Might it be |
As the nodesToDelete does not describe an end result of the CR, this will be removed with this patch. To remove a specific node or nodes the following process needs to be followed: 1. annotate the machine/machines object corresponding to the node which should be removed 2. lower the worker number of the CR of the machineset
9ac7498 to
be1aa4b
Compare
|
rebased after sdk upgrade |
As the nodesToDelete does not describe an end result of the CR,
this will be removed with this patch. To remove a specific node
or nodes the following process needs to be followed:
which should be removed