add azure machine pool machine proposal#1191
Conversation
f13db88 to
5db0f5f
Compare
CecileRobertMichon
left a comment
There was a problem hiding this comment.
Thank you so much for taking the time to write this down. It helped me understand better what the goals are in #1105, and I'm sure it will help future contributors and users as well.
Overall this looks good to me but I challenged some of the assumptions / implied design choices that might not be obvious to others. My main concern is around the delete scenario and how the sync works between Azure resource deletions and k8s CR deletions.
| } | ||
|
|
||
| // AzureMachinePoolMachineSpec defines the desired state of AzureMachinePoolMachine | ||
| AzureMachinePoolMachineSpec struct { |
There was a problem hiding this comment.
How do we make it clear to the users that they are not responsible for creating the AzureMachinePoolMachines?
There was a problem hiding this comment.
That's a great question. Do you have any suggestions?
My first inclination is to add documentation.
There really isn't anything that stops someone from creating an AMPM. It won't hurt anything.
|
Thank you @devigned for this doc, very helpful in understanding how all this works |
f622249 to
983aa33
Compare
|
Looking at how the upgrade process is implemented in KCP we could try to make the two look even more similar. There are two fields that I believe could be useful here:
What do you think? |
8dd3a94 to
45afafe
Compare
@fiunchinho I don't think that upgradeAfter makes sense for AzureMachinePool since if there are no changes to the underlying model, then there will be nothing to upgrade. I added the |
Totally with you. I miss understood the |
| // The default value is 0, meaning that the node can be drained without any time limitations. | ||
| // NOTE: NodeDrainTimeout is different from `kubectl drain --timeout` | ||
| // +optional | ||
| NodeDrainTimeout *metav1.Duration `json:"nodeDrainTimeout,omitempty"` |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nader-ziada The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind design
What this PR does / why we need it:
The scope of work for implementing safe rolling upgrades for AzureMachinePool with MaxUnavailable and MaxSurge has grown to warrant a proposal. This proposal provides background, tradeoffs and the design strategy to explain why we want to break out AzureMachinePoolMachines from AzureMachinePools.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Related to #1105
TODOs:
Release note: