-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
⚠️ MachinePool API Controller Implementation #1952
⚠️ MachinePool API Controller Implementation #1952
Conversation
FYI - I'll add tests before removing the [WIP] flag. |
@juan-lee is this ready for an initial round of reviews? |
6cfbdce
to
cab374c
Compare
cab374c
to
988b198
Compare
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.
First pass, looking good so far!
988b198
to
be50ed6
Compare
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.
Soooo sorry for the delay in reviewing this!
@juan-lee @CecileRobertMichon will you all have time over the next week or so to work on review comments & unit tests? Anything else we can do to help? |
be50ed6
to
ce2bab2
Compare
@ncdc I just addressed the comments sans validation and unit tests. I should have cycles today or tomorrow to get those wrapped up. Thanks for the review @ncdc @vincepri @CecileRobertMichon @JoelSpeed |
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.
@juan-lee it looks like there's still a decent amount of outstanding comments from my earlier review.
@@ -57,13 +76,181 @@ func (r *MachinePoolReconciler) SetupWithManager(mgr ctrl.Manager, options contr | |||
r.controller = c | |||
r.recorder = mgr.GetEventRecorderFor("machinepool-controller") | |||
r.config = mgr.GetConfig() | |||
|
|||
r.scheme = mgr.GetScheme() | |||
return nil |
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.
Pending resolution of https://github.com/kubernetes-sigs/cluster-api/pull/2101/files#r371995294, may need to add a watch map function from Cluster -> MachinePool
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.
We should likely also port over the immutability check on ClusterName
as well.
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.
The immutability check is part of a validation webhook @detiber? Would it be okay to enable the validation webhooks and immutability check in a follow-up PR?
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.
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.
I'm not totally sure (the link to the discussion is not working), but do we need to receive reconcile requests here when an Cluster object is updated?
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.
ce2bab2
to
5dd9d65
Compare
5dd9d65
to
b8faf17
Compare
b3cb727
to
efd7f2b
Compare
Taking a look today |
@@ -57,13 +76,181 @@ func (r *MachinePoolReconciler) SetupWithManager(mgr ctrl.Manager, options contr | |||
r.controller = c | |||
r.recorder = mgr.GetEventRecorderFor("machinepool-controller") | |||
r.config = mgr.GetConfig() | |||
|
|||
r.scheme = mgr.GetScheme() | |||
return nil |
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.
I'm not totally sure (the link to the discussion is not working), but do we need to receive reconcile requests here when an Cluster object is updated?
efd7f2b
to
e236dfc
Compare
7b54bff
to
d0754e1
Compare
d0754e1
to
fd38a74
Compare
Signed-off-by: Juan-Lee Pang <[email protected]>
fd38a74
to
d3dcb27
Compare
/test pull-cluster-api-capd-e2e |
/milestone v0.3.0-rc.1 |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: juan-lee, vincepri The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/assign @davidewatson |
/retest |
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
/lgtm |
What this PR does / why we need it:
Adds
MachinePool
controller implementation described in the MachinePool API proposal.