📖 docs: machinepool contract spec#12971
Conversation
d1d60f8 to
271c8df
Compare
271c8df to
5cc7517
Compare
5cc7517 to
53b1241
Compare
fabriziopandini
left a comment
There was a problem hiding this comment.
Thanks for this PR!
This really helps folks like me to step up knowledge about MachinePools!
docs/book/src/developer/providers/contracts/infra-machinepool.md
Outdated
Show resolved
Hide resolved
docs/book/src/developer/providers/contracts/infra-machinepool.md
Outdated
Show resolved
Hide resolved
docs/book/src/developer/providers/contracts/infra-machinepool.md
Outdated
Show resolved
Hide resolved
docs/book/src/developer/providers/contracts/infra-machinepool.md
Outdated
Show resolved
Hide resolved
docs/book/src/developer/providers/contracts/infra-machinepool.md
Outdated
Show resolved
Hide resolved
docs/book/src/developer/providers/contracts/infra-machinepool.md
Outdated
Show resolved
Hide resolved
docs/book/src/developer/providers/contracts/infra-machinepool.md
Outdated
Show resolved
Hide resolved
docs/book/src/developer/providers/contracts/infra-machinepool.md
Outdated
Show resolved
Hide resolved
|
/assign Would like to review after Fabrizio lgtm and before merge |
|
Thanks for your feedback @fabriziopandini . I will make updates based on this. |
cbf9bc7 to
22f729e
Compare
|
@fabriziopandini - i have updated the doc based on your feedback. |
docs/book/src/developer/providers/contracts/infra-machinepool.md
Outdated
Show resolved
Hide resolved
docs/book/src/developer/providers/contracts/infra-machinepool.md
Outdated
Show resolved
Hide resolved
docs/book/src/developer/providers/contracts/infra-machinepool.md
Outdated
Show resolved
Hide resolved
docs/book/src/developer/providers/contracts/infra-machinepool.md
Outdated
Show resolved
Hide resolved
docs/book/src/developer/providers/contracts/infra-machinepool.md
Outdated
Show resolved
Hide resolved
docs/book/src/developer/providers/contracts/infra-machinepool.md
Outdated
Show resolved
Hide resolved
docs/book/src/developer/providers/contracts/infra-machinepool.md
Outdated
Show resolved
Hide resolved
|
@richardcase are we not going to document anything on the upgrades? My understanding is that the status would change based on the update strategy. For example: Atomic updates:
Rolling updates:
Should providers declare their update strategy in the contract so CAPI can adapt behavior accordingly? |
@bnallapeta - i think we should follow up on this as we are trying to document the current state of the contract. Providers declaring an "update strategy" would be a change to the current contract. We are going to need to update the MachinePool controller document based on the introduction of this contract doc. Perhaps we should include behaviour type stuff when we do that? |
|
@richardcase quoting from #10496,
I think we should talk about this in the contract. A few questions on this: Should providers watch for bootstrap config changes and trigger updates? If yes, what's the signal? Hash of the secret data? ConfigRef version? |
|
Note for the maintainers, i will squash the commits when we are all happy with the doc. |
I agree i do think we need to document this in the MachinPools documentation. However, i don't think this sits in the contract document. Lets add this elsewhere, perhaps where i suggested earlier: https://cluster-api.sigs.k8s.io/developer/core/controllers/machine-pool when we make changes to that. |
no need to /label tide/merge-method-squash |
|
@richardcase Do you have time to address the final findings so we can merge this PR? Thx! |
I do. Sorry for the delay, i kind of got consumed by some downstream work. Chatting with Fabrizio in a bit to clarify a point, and then I'll get the last edits done today. |
This adds documentation that details the contract for providers when implementing an infrastructure machine pool. This has been created retrospectively from looking at a number of providers and the MachinePool controller. Signed-off-by: Richard Case <[email protected]>
Changes after the first review by Fabrizio. Signed-off-by: Richard Case <[email protected]>
Changes after the first review by Fabrizio. Signed-off-by: Richard Case <[email protected]>
Some updates after an additional review by Andreas. Signed-off-by: Richard Case <[email protected]>
3e1ec90 to
ed15af9
Compare
|
This should be good to go now. |
docs/book/src/developer/providers/contracts/infra-machinepool.md
Outdated
Show resolved
Hide resolved
ed15af9 to
3ac4ff8
Compare
fabriziopandini
left a comment
There was a problem hiding this comment.
last nit from my side, otherwise lgtm
docs/book/src/developer/providers/contracts/infra-machinepool.md
Outdated
Show resolved
Hide resolved
Various updates after review by Fabrizio and Andreas. Specifically: - Making it clearer what is preferred state vs current deprecated - Rewording some parts to be clearer. Signed-off-by: Richard Case <[email protected]>
3ac4ff8 to
a46efce
Compare
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: 3ad8026321ebcdfec493166786e39e7f8b5ec2af |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini 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 |
|
Thanks @richardcase! |
|
/cherry-pick release-1.12 |
|
@fabriziopandini: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@fabriziopandini: new pull request created: #13098 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What this PR does / why we need it:
This adds documentation that details the contract for providers when implementing an infrastructure machine pool.
This has been created retrospectively from looking at a number of providers and the MachinePool controller.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #12799
/area machinepool